6a918bade9dab40aaef80559bd1169c69e8d69cb |
|
11-Mar-2012 |
Mike Dunn <mikedunn@newsguy.com> |
mtd: flash drivers set ecc strength Flash device drivers initialize 'ecc_strength' in struct mtd_info, which is the maximum number of bit errors that can be corrected in one writesize region. Drivers using the nand interface intitialize 'strength' in struct nand_ecc_ctrl, which is the maximum number of bit errors that can be corrected in one ecc step. Nand infrastructure code translates this to 'ecc_strength'. Also for nand drivers, the nand infrastructure code sets ecc.strength for ecc modes NAND_ECC_SOFT, NAND_ECC_SOFT_BCH, and NAND_ECC_NONE. It is set in the driver for all other modes. Signed-off-by: Mike Dunn <mikedunn@newsguy.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
/drivers/mtd/nand/s3c2410.c
|
42d7fbe223ab878b23de9e3b0166f8cd665a2aa5 |
|
09-Mar-2012 |
Artem Bityutskiy <artem.bityutskiy@linux.intel.com> |
mtd: do not use plain 0 as NULL The first 3 arguments of 'mtd_device_parse_register()' are pointers, but many callers pass '0' instead of 'NULL'. Fix this globally. Thanks to coccinelle for making it easy to do with the following semantic patch: @@ expression mtd, types, parser_data, parts, nr_parts; @@ ( -mtd_device_parse_register(mtd, 0, parser_data, parts, nr_parts) +mtd_device_parse_register(mtd, NULL, parser_data, parts, nr_parts) | -mtd_device_parse_register(mtd, types, 0, parts, nr_parts) +mtd_device_parse_register(mtd, types, NULL, parts, nr_parts) | -mtd_device_parse_register(mtd, types, parser_data, 0, nr_parts) +mtd_device_parse_register(mtd, types, parser_data, NULL, nr_parts) ) Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
/drivers/mtd/nand/s3c2410.c
|
4aa10626adbc27dcf2e3462bb82b4963c5545669 |
|
21-Jul-2011 |
Jonghwan Choi <jhbird.choi@samsung.com> |
mtd: s3c2410 nand: Remove uncessary null check clk_get() return a pointer to the struct clk or an ERR_PTR(). Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
/drivers/mtd/nand/s3c2410.c
|
599501a749a1ca3baa94ac9714f06782f63439b0 |
|
02-Jun-2011 |
Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
mtd: s3c2410.c: use mtd_device_parse_register Replace custom invocations of parse_mtd_partitions and mtd_device_register with common mtd_device_parse_register call. This would bring: standard handling of all errors, fallback to default partitions, etc. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
/drivers/mtd/nand/s3c2410.c
|
5b2efbdf70c74dcab575103c547ae27a71daba4c |
|
29-May-2011 |
Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
mtd: s3c2410 don't specify default parsing options Since 'cmdline, NULL' is now a default for parse_mtd_partitions, don't specify this in every driver, instead pass NULL to force parse_mtd_partitions to use default. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
/drivers/mtd/nand/s3c2410.c
|
bb9ebd4e714385a2592a482845865ef2d58b2868 |
|
01-Jun-2011 |
Brian Norris <computersforpeace@gmail.com> |
mtd: nand: rename NAND_USE_FLASH_BBT Recall the recently added prefix requirements: * "NAND_" for flags in nand.h, used in nand_chip.options * "NAND_BBT_" for flags in bbm.h, used in nand_chip.bbt_options or in nand_bbt_descr.options Thus, I am changing NAND_USE_FLASH_BBT to NAND_BBT_USE_FLASH. Again, this flag is found in bbm.h and so should NOT be used in the "nand_chip.options" field. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
/drivers/mtd/nand/s3c2410.c
|
a40f73419f02e40555f692785ea1c1813d5b4c12 |
|
01-Jun-2011 |
Brian Norris <computersforpeace@gmail.com> |
mtd: nand: consolidate redundant flash-based BBT flags This patch works with the following three flags from two headers (nand.h and bbm.h): (1) NAND_USE_FLASH_BBT (nand.h) (2) NAND_USE_FLASH_BBT_NO_OOB (nand.h) (3) NAND_BBT_NO_OOB (bbm.h) These flags are all related and interdependent, yet they were in different headers. Flag (2) is simply the combination of (1) and (3) and can be eliminated. This patch accomplishes the following: * eliminate NAND_USE_FLASH_BBT_NO_OOB (i.e., flag (2)) * move NAND_USE_FLASH_BBT (i.e., flag (1)) to bbm.h It's important to note that because (1) and (3) are now both found in bbm.h, they should NOT be used in the "nand_chip.options" field. I removed a small section from the mtdnand DocBook because it referes to NAND_USE_FLASH_BBT in nand.h, which has been moved to bbm.h. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
/drivers/mtd/nand/s3c2410.c
|
af86ea8fa3df5516175ec948875f6e742e82c1ad |
|
23-May-2011 |
Jamie Iles <jamie@jamieiles.com> |
mtd: s3c2410 nand: convert to mtd_device_register() Convert to mtd_device_register() and remove the CONFIG_MTD_PARTITIONS preprocessor conditionals as partitioning is always available. Cc: Ben Dooks <ben-linux@fluff.org> Cc: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Jamie Iles <jamie@jamieiles.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
/drivers/mtd/nand/s3c2410.c
|
ac497c1602555c908c9738fa93b1145f431d1876 |
|
13-Apr-2011 |
Jiri Pinkava <jiri.pinkava@vscht.cz> |
mtd: nand: fix S3C NAND clock stop Current implementation of s3c2410_nand_select_chip call clk_disable every time when chip = -1 (de-select). This happend multiple times even if chip was already de-selected. This causes disabling clock even if they are already disabled and due to nature of clock subsytem implementation this causes nand clock to be disabled and newer enabled again. Signed-off-by: Jiri Pinkava <jiri.pinkava@vscht.cz> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
/drivers/mtd/nand/s3c2410.c
|
78d1022439e501bc4a1a32bfaad5a321b8a9d5d6 |
|
12-Jul-2010 |
Conke Hu <conke@maxwit.com> |
mtd: s3c nand: parsing command-line partitions prior to set->partitions Current driver prevents command-line partitions from being parsed when built-in partitions are defined in s3c2410_nand_set object, but it is not desirable in some cases. This patch tries to parse commad-line partitions prior to the built-in. Signed-off-by: Conke Hu <conke@maxwit.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
/drivers/mtd/nand/s3c2410.c
|
ecce2a6f9bdc7635838baeff8a09a76c9a70e7e0 |
|
13-May-2010 |
Julia Lawall <julia@diku.dk> |
drivers/mtd/nand: Use kzalloc Use kzalloc rather than the combination of kmalloc and memset. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression x,size,flags; statement S; @@ -x = kmalloc(size,flags); +x = kzalloc(size,flags); if (x == NULL) S -memset(x, 0, size); // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
/drivers/mtd/nand/s3c2410.c
|
5e81e88a4c140586d9212999cea683bcd66a15c6 |
|
26-Feb-2010 |
David Woodhouse <David.Woodhouse@intel.com> |
mtd: nand: Allow caller to pass alternative ID table to nand_scan_ident() Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
/drivers/mtd/nand/s3c2410.c
|
fc161c4e8ec9b12d42b10d510a9de8562ea3afac |
|
14-Dec-2009 |
H Hartley Sweeten <hartleys@visionengravers.com> |
mtd: drivers/mtd/nand/s3c2410.c: use resource_size() Use resource_size(). Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
/drivers/mtd/nand/s3c2410.c
|
60d9aa758c00f20ade0cb1951f6a934f628dd2d7 |
|
16-Dec-2009 |
Linus Torvalds <torvalds@linux-foundation.org> |
Merge git://git.infradead.org/mtd-2.6 * git://git.infradead.org/mtd-2.6: (90 commits) jffs2: Fix long-standing bug with symlink garbage collection. mtd: OneNAND: Fix test of unsigned in onenand_otp_walk() mtd: cfi_cmdset_0002, fix lock imbalance Revert "mtd: move mxcnd_remove to .exit.text" mtd: m25p80: add support for Macronix MX25L4005A kmsg_dump: fix build for CONFIG_PRINTK=n mtd: nandsim: add support for 4KiB pages mtd: mtdoops: refactor as a kmsg_dumper mtd: mtdoops: make record size configurable mtd: mtdoops: limit the maximum mtd partition size mtd: mtdoops: keep track of used/unused pages in an array mtd: mtdoops: several minor cleanups core: Add kernel message dumper to call on oopses and panics mtd: add ARM pismo support mtd: pxa3xx_nand: Fix PIO data transfer mtd: nand: fix multi-chip suspend problem mtd: add support for switching old SST chips into QRY mode mtd: fix M29W800D dev_id and uaddr mtd: don't use PF_MEMALLOC mtd: Add bad block table overrides to Davinci NAND driver ... Fixed up conflicts (mostly trivial) in drivers/mtd/devices/m25p80.c drivers/mtd/maps/pcmciamtd.c drivers/mtd/nand/pxa3xx_nand.c kernel/printk.c
|
af901ca181d92aac3a7dc265144a9081a86d8f39 |
|
14-Nov-2009 |
André Goddard Rosa <andre.goddard@gmail.com> |
tree-wide: fix assorted typos all over the place That is "success", "unknown", "through", "performance", "[re|un]mapping" , "access", "default", "reasonable", "[con]currently", "temperature" , "channel", "[un]used", "application", "example","hierarchy", "therefore" , "[over|under]flow", "contiguous", "threshold", "enough" and others. Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
/drivers/mtd/nand/s3c2410.c
|
74218fedf478323cce831b51507eebd1faf0bf7f |
|
02-Nov-2009 |
Ben Dooks <ben@simtec.co.uk> |
mtd: s3c2410: propagate nand options from the platform data Update the nand information passed to the core from the platform data to setup the initial option value, so that flags such as NAND_SCAN_SILENT_NODEV can pass through. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Simtec Linux Team <linux@simtec.co.uk> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
/drivers/mtd/nand/s3c2410.c
|
9dbc090274668abe3fc9f3a5de490d7d412cd74a |
|
07-Jun-2009 |
Peter Korsgaard <jacmet@sunsite.dk> |
mtd/nand: s3c6400 support for s3c2410 driver Add s3c6400 support to the s3c2410 driver. The nand controller in the s3c64xx devices is compatible with the one in the s3c2412, so simply reuse that code. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Acked-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
/drivers/mtd/nand/s3c2410.c
|
e635a01ea0a16cf7cd31ecd2305870385dca9be6 |
|
08-Jun-2009 |
David Woodhouse <David.Woodhouse@intel.com> |
Merge branch 'next-mtd' of git://aeryn.fluff.org.uk/bjdooks/linux
|
947391cfbaa3b08558844c0b187bcd0223c3f660 |
|
30-May-2009 |
Ben Dooks <ben-linux@fluff.org> |
[MTD] [NAND] S3C2410: Use DIV_ROUND_UP Change to using DIV_ROUND_UP() in the timing calculation instead of blindly doing result++ Signed-off-by: Ben Dooks <ben-linux@fluff.org>
/drivers/mtd/nand/s3c2410.c
|
dea2aa6fd7d46c43c840ad77905f3c161d5bc59d |
|
30-May-2009 |
Ben Dooks <ben-linux@fluff.org> |
[MTD] [NAND] S3C2410: Deal with unaligned lengths in S3C2440 buffer read/write Add code to deal with fractional lengths, as reported by Werner Almesberger. Re-work of his original patch. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
/drivers/mtd/nand/s3c2410.c
|
9db41f9edcb87ae050fcb171c44be7f212728d54 |
|
13-May-2009 |
Michel Pollet <buserror@gmail.com> |
[MTD] [NAND] S3C2410: Allow the machine code to get the BBT table from NAND Added a flag to allow the machine code to tell the NAND subsystem that it should try to pickup a BBT from the flash, and also skip the NAND full scan at startup. Signed-off-by: Michel Pollet <buserror@gmail.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
/drivers/mtd/nand/s3c2410.c
|
a755a3858f96ea7e8762ecaac451adfad45321bd |
|
03-Jun-2009 |
Peter Korsgaard <jacmet@sunsite.dk> |
mtd: nand: s3c2410_nand_setrate(): use correct macros for 2412/2440 Use the correct S3C2440_NFCONF_* macros for the mask for the 2412/2440 variants instead of the 2410 ones which use wrong bit positions. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
/drivers/mtd/nand/s3c2410.c
|
ed27f0287062236d50190d7447f6377ff4acdfad |
|
10-May-2009 |
Andy Green <andy@warmcat.com> |
[MTD] [NAND] S3C2410: Allow commandline partition processing This patch allows commandline partition processing to work with the s3c2410 NAND platform driver. Signed-off-by: Andy Green <andy@warcat.com> Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net> [ben-linux@fluff.org: Change andy@openmoko.com to andy@warmcat.com] Signed-off-by: Ben Dooks <ben-linux@fluff.org>
/drivers/mtd/nand/s3c2410.c
|
ae7304e554642d57993b32265b817e6ae80787de |
|
10-May-2009 |
Andy Green <andy@warmcat.com> |
[MTD] [NAND] S3C2410: Fix CFG debug order Fix NAND CFG debug order. Signed-off-by: Andy Green <andy@warmcat.com> Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net> [ben-linux@fluff.org: Change andy@openmoko.com to andy@warmcat.com, subject cleanup] Signed-off-by: Ben Dooks <ben-linux@fluff.org>
/drivers/mtd/nand/s3c2410.c
|
2612e523dc3695df319662ff279806a3d74de375 |
|
10-May-2009 |
Nelson Castillo <arhuaco@freaks-unidos.net> |
[MTD] [NAND] S3C2410: Uninitialised variable cleanup ~ Avoid warning without generating code. (I don't even get the warning without the macro uninitialized_var). Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net> [ben-linux@fluff.org: subject cleanup] Signed-off-by: Ben Dooks <ben-linux@fluff.org>
/drivers/mtd/nand/s3c2410.c
|
8c3e843d56f74889f3ff32202e82e3bc16d0d552 |
|
10-May-2009 |
Andy Green <andy@warmcat.com> |
[MTD] [NAND] S3C2410: NAND ECC by chip rather than global This makes us take note about the chosen ECC mode per-chip and not the one set globally. Signed-off-by: Andy Green <andy@warmcat.com> Signed-off-by: Nelson Castillo <arhuaco@freaks-unidos.net> [ben-linux@fluff.org: andy@openmoko.com => andy@warmcat.com, rewrite subject] Signed-off-by: Ben Dooks <ben-linux@fluff.org>
/drivers/mtd/nand/s3c2410.c
|
3db72151aa4c246f8bdb8b3501972e1f1b32fe0d |
|
30-May-2009 |
Ben Dooks <ben-linux@fluff.org> |
[MTD] [NAND] S3C2410: Basic kerneldoc comment updates Move to using kerneldoc style commenting in the driver Signed-off-by: Ben Dooks <ben-linux@fluff.org>
/drivers/mtd/nand/s3c2410.c
|
ec0482e6cfbd460bc69a9073ffbef4c2f3422fdf |
|
30-May-2009 |
Ben Dooks <ben-linux@fluff.org> |
[MTD] [NAND] S3C2410: Move to using platform device table Commit 57fee4a58fe802272742caae248872c392a60670 added an method to specify the platform device compatibility by using an id-table instead of registering multiple drivers. Move the S3C24XX NAND driver to using this ID table. Signed-off-by: Ben Dooks <ben-linux@fluff.org> CC: Eric Miao <eric.miao@marvell.com>
/drivers/mtd/nand/s3c2410.c
|
fba670013d538719d13f103b2a5b4b06bdca202b |
|
29-Nov-2008 |
Russell King <rmk@dyn-67.arm.linux.org.uk> |
Merge branch 's3c-moves2' of git://aeryn.fluff.org.uk/bjdooks/linux into devel
|
59f0cb0fddc14ffc6676ae62e911f8115ebc8ccf |
|
27-Oct-2008 |
Russell King <rmk@dyn-67.arm.linux.org.uk> |
[ARM] remove memzero() As suggested by Andrew Morton, remove memzero() - it's not supported on other architectures so use of it is a potential build breaking bug. Since the compiler optimizes memset(x,0,n) to __memzero() perfectly well, we don't miss out on the underlying benefits of memzero(). Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
/drivers/mtd/nand/s3c2410.c
|
7926b5a325f06745a1bed75bfb4ef814d0ae9d99 |
|
30-Oct-2008 |
Ben Dooks <ben-linux@fluff.org> |
[ARM] S3C: Move nand headers to arch/arm/plat-s3c/include/plat Move nand headers to arch/arm/plat-s3c/include/plat ready to clean out the old include directories. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
/drivers/mtd/nand/s3c2410.c
|
30821fee4f0cb3e6d241d9f7ddc37742212e3eb7 |
|
15-Jul-2008 |
Ben Dooks <ben-mtd@fluff.org> |
CPUFREQ: S3C24XX NAND driver frequency scaling support. Add support for CPU frequency scalling to the S3C24XX NAND driver. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
/drivers/mtd/nand/s3c2410.c
|
7e74a5076edb3555dc6c96dc91b155706515bb4c |
|
20-May-2008 |
Ben Dooks <ben-linux@fluff.org> |
[MTD] [NAND] S3C2410: Remove changelog and tidy header The changelog on the driver is superflous given this is being kept under revision control. Remove the other cruft in the header and update the copyright and the supported device list. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
451d33993b13174d27474ad2ce7a2f10ce2e31ad |
|
20-May-2008 |
Ben Dooks <ben-linux@fluff.org> |
[MTD] [NAND] S3C2410: Change printk() into dev_dbg() Fix a minor problem with what should have been debug output by changing printk() to dev_dbg() inside s3c2410_nand_update_chip(). Thanks to David Woodhouse for pointing this out. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
59018b6d2acabb114ab58637e6ab95ba424a89d0 |
|
20-May-2008 |
Adrian Bunk <bunk@kernel.org> |
MTD/JFFS2: remove CVS keywords Once upon a time, the MTD repository was using CVS. This patch therefore removes all usages of the no longer updated CVS keywords from the MTD code. This also includes code that printed them to the user. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
37e5ffa3f15bd9a8b133ab13e9bef833b5eb33d4 |
|
15-Apr-2008 |
Ben Dooks <ben-mtd@fluff.org> |
[MTD] [NAND] S3C2410 Allow ECC disable to be specified by the board Add support to disable ECC checking for a given chip when passed by the board via the platform data. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
1c21ab67b7d3c9a1296019939e0efb69350487cf |
|
15-Apr-2008 |
Ben Dooks <ben-mtd@fluff.org> |
[MTD] [NAND] S3C2410 Allow ECC layout to be passed through platform data Add support for the ECC layout to be passed via the platform data specified by the board. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
c45c6c68333c04de84c21a4b869f36a96f642779 |
|
15-Apr-2008 |
Ben Dooks <ben-mtd@fluff.org> |
[MTD] [NAND] S3C2410 Allow unset ecc to be ignored for ecc correction If a block's ecc field is all 0xff, then ignore the ECC correction. This is for systems where some of the blocks, such as the initial cramfs are written without ECC and need to be loaded on start. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
71d54f3855b4ca98559e8782350336ec2433cc24 |
|
15-Apr-2008 |
Ben Dooks <ben-mtd@fluff.org> |
[MTD] [NAND] S3C2410 Large page NAND support This adds support for using large page NAND devices with the S3C24XX NAND controller. This also adds the file Documentation/arm/Samsung-S3C24XX/NAND.txt to describe the differences. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
0916083210039bf3d186a87522cc806dc21b7097 |
|
15-Apr-2008 |
Ben Dooks <ben-mtd@fluff.org> |
[MTD] [NAND] S3C2410 Fix previous nFCE suspend save patch Commit 03680b1e00d146df718c8a4eac34438566b70c85 incorrectly was assuming S3C2410_NFCONF was being used to select the NAND chip. Fix this error by ising the sel_reg. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
1ff184225b15930ea118ac2130f074c741d34f08 |
|
18-Apr-2008 |
Kay Sievers <kay.sievers@vrfy.org> |
[MTD] [NAND] fix platform driver hotplug/coldplug Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable MTD NAND platform drivers, to re-enable auto loading. NOTE: at91_nand for some reason disallows modular builds. I'm assuming that's just an oversight that will be fixed. [dbrownell@users.sourceforge.net: minor fix] Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
a8e98d6d51a3eb7bb061b1625193a129c8bd094f |
|
07-Feb-2008 |
Linus Torvalds <torvalds@woody.linux-foundation.org> |
Merge git://git.infradead.org/mtd-2.6 * git://git.infradead.org/mtd-2.6: (120 commits) [MTD] Fix mtdoops.c compilation [MTD] [NOR] fix startup lock when using multiple nor flash chips [MTD] [DOC200x] eccbuf is statically defined and always evaluate to true [MTD] Fix maps/physmap.c compilation with CONFIG_PM [MTD] onenand: Add panic_write function to the onenand driver [MTD] mtdoops: Use the panic_write function when present [MTD] Add mtd panic_write function pointer [MTD] [NAND] Freescale enhanced Local Bus Controller FCM NAND support. [MTD] physmap.c: Add support for multiple resources [MTD] [NAND] Fix misparenthesization introduced by commit 78b65179... [MTD] [NAND] Fix Blackfin NFC ECC calculating bug with page size 512 bytes [MTD] [NAND] Remove wrong operation in PM function of the BF54x NFC driver [MTD] [NAND] Remove unused variable in plat_nand_remove [MTD] Unlocking all Intel flash that is locked on power up. [MTD] [NAND] at91_nand: Make mtdparts option can override board info [MTD] mtdoops: Various minor cleanups [MTD] mtdoops: Ensure sequential write to the buffer [MTD] mtdoops: Perform write operations in a workqueue [MTD] mtdoops: Add further error return code checking [MTD] [NOR] Test devtype, not definition in flash_probe(), drivers/mtd/devices/lart.c ...
|
8e87d7820a6362b6304924befb22d1ee79b754f3 |
|
03-Feb-2008 |
Joe Perches <joe@perches.com> |
drivers/mtd/: Spelling fixes Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Adrian Bunk <bunk@kernel.org>
/drivers/mtd/nand/s3c2410.c
|
d0bf37932ac98cc793da2164ac1a4656fbf34bbc |
|
19-Oct-2007 |
Matt Reimer <mreimer@vpop.net> |
[MTD] [NAND] fix s3c2410 error correction The single-bit error correction was, well, incorrect. For determing which bit to correct it was using P1' P2' P4' P8' instead of P1 P2 P4 P8, and it was using P16' P32' P64' P128' P256' P512' P1024' P2048' instead of P16 P32 P64 P128 P256 P512 P1024 P2048. Signed-off-by: Matt Reimer <mreimer@vpop.net> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
4fac9f698404a5cd50b978fbdb7e54235353c215 |
|
19-Oct-2007 |
Matt Reimer <mreimer@vpop.net> |
[MTD] [NAND] make s3c2410 indicate an error for multi-bit read errors If there were multiple bit errors in the data s3c2410_nand_correct_data() was returning 0 (no error) instead of -1, so the upper layers (like JFFS2) would not know the data is corrupt. Signed-off-by: Matt Reimer <mreimer@vpop.net> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
03680b1e00d146df718c8a4eac34438566b70c85 |
|
20-Nov-2007 |
Ben Dooks <ben-linux@fluff.org> |
[MTD] [NAND] S3C2410 correctly set nFCE over resume Ensure the nFCE line is de-asserted over suspend and then re-initialised when the system resumes. This is to ensure that the NAND is kept in lowest power mode over suspend (power settings are only specified for nFCE inactive) as well as fixing the Simtec Osiris which relies on nFCE being inactive. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
b773bb2e702f6ac96223018d621ea9ed0d4f23ff |
|
19-Oct-2007 |
Matt Reimer <mreimer@vpop.net> |
[MTD] [NAND] add s3c2440-specific read_buf/write_buf Add read_buf/write_buf for s3c2440, which can read/write 32 bits at a time rather than just 8. In my testing on an s3c2440a running at 400 MHz with a 100 MHz HCLK, read performance improves by 36% (from 5.19 MB/s to 7.07 MB/s). Signed-off-by: Matt Reimer <mreimer@vpop.net> Acked-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
898eb71cb17644964c5895fb190e79e3d0c49679 |
|
18-Oct-2007 |
Joe Perches <joe@perches.com> |
Add missing newlines to some uses of dev_<level> messages Found these while looking at printk uses. Add missing newlines to dev_<level> uses Add missing KERN_<level> prefixes to multiline dev_<level>s Fixed a wierd->weird spelling typo Added a newline to a printk Signed-off-by: Joe Perches <joe@perches.com> Cc: "Luck, Tony" <tony.luck@intel.com> Cc: Jens Axboe <jens.axboe@oracle.com> Cc: Mark M. Hoffman <mhoffman@lightlink.com> Cc: Roland Dreier <rolandd@cisco.com> Cc: Tilman Schmidt <tilman@imap.cc> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Jeff Garzik <jeff@garzik.org> Cc: Stephen Hemminger <shemminger@linux-foundation.org> Cc: Greg KH <greg@kroah.com> Cc: Jeremy Fitzhardinge <jeremy@goop.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: David Brownell <david-b@pacbell.net> Cc: James Smart <James.Smart@Emulex.Com> Cc: Andrew Vasquez <andrew.vasquez@qlogic.com> Cc: "Antonino A. Daplas" <adaplas@pol.net> Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru> Cc: Russell King <rmk@arm.linux.org.uk> Cc: Jaroslav Kysela <perex@suse.cz> Cc: Takashi Iwai <tiwai@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
/drivers/mtd/nand/s3c2410.c
|
b7a701851842e6a3d33ac1b0f80379664c633d49 |
|
24-Jul-2007 |
Ben Dooks <ben-linux@fluff.org> |
[MTD] [NAND] s3c2410: fix arch moves Fixup the includes which have been moved around when changing the s3c24xx arch support. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
dff5e44c36ed7ef6ce2a5280e5204c452668960f |
|
23-Feb-2007 |
Arnaud Patard <arnaud.patard@rtp-net.org> |
[ARM] 4233/1: nand/s3c2410.c: warning fix Noticed while building a s3c2410 kernel : drivers/mtd/nand/s3c2410.c: In function 's3c2440_nand_calculate_ecc': drivers/mtd/nand/s3c2410.c:476: warning: format '%06x' expects type 'unsigned int', but argument 3 has type 'long unsigned int' This patch fixes it. Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
/drivers/mtd/nand/s3c2410.c
|
4f65992381112acd7d2732665a9eae492c2c9de6 |
|
13-Feb-2007 |
Matthieu CASTET <matthieu.castet@parrot.fr> |
[MTD] [NAND] S3C2412 fix hw ecc S3C2412 use differents registers than s3c2440 for hw ecc handling. Signed-off-by: Matthieu CASTET <matthieu.castet@parrot.fr> Acked-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
a2593247d747954cd12c32da8c5a3aecb9cd19a3 |
|
02-Feb-2007 |
Ben Dooks <ben-linux@fluff.org> |
[MTD] [NAND] S3C2410: Hardware ECC correction code Add support for correcting errors detected by the hardware ECC. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
c9ac5977299dd106ddb759e7e10035770dff185b |
|
30-Nov-2006 |
David Woodhouse <dwmw2@infradead.org> |
[MTD] Remove trailing whitespace The newly-added cafe_ecc.c had a lot of it because of the way the lookup table was auto-generated; clean up the other files too while we're at it. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
2c06a0821711a53d51a3d0492a9be0671b7152e5 |
|
27-Jun-2006 |
Ben Dooks <ben-mtd@fluff.org> |
[MTD NAND] s3c2412 support in s3c2410.c Add support for both the S3C2412 and S3C2412 Samsung SoCs to the increasingly mis-named s3c2410.c driver. This currently only supports SLC ECCs, and a chip on nFCE0. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
99974c62b6acd4093b6f485132067089c39f967c |
|
21-Jun-2006 |
Ben Dooks <ben-linux@fluff.org> |
[MTD] NAND: S3C2410 convert prinks to dev_*()s Convert the use of printk() to the correct dev_info/dev_err functions Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/drivers/mtd/nand/s3c2410.c
|
ad3b5fb772e6a824f1ac341eb8e392eca6fc524f |
|
19-Jun-2006 |
Ben Dooks <ben-linux@fluff.org> |
[MTD NAND] S3C2410 driver cleanup Fix unused variables and commenting since tglx's new NAND updates Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
d1fef3c5e16327661be6cb127d68f5be379697a5 |
|
19-Jun-2006 |
Ben Dooks <ben-linux@fluff.org> |
[MTD NAND] s3c24x0 board: Fix clock handling, ensure proper initialisation. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
f9068876f5ef583f8e9ebf4acd2ef5b35b113db9 |
|
10-Jun-2006 |
David Woodhouse <dwmw2@infradead.org> |
[MTD NAND] Fix s3c2410 NAND driver so it at least _looks_ like it compiles Fix the control bit handling so it even looks like it might work, too. Bad tglx. No biscuit. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
5bd34c091a044d130601370c370f84b1c59f1627 |
|
27-May-2006 |
Thomas Gleixner <tglx@cruncher.tec.linutronix.de> |
[MTD] NAND Replace oobinfo by ecclayout The nand_oobinfo structure is not fitting the newer error correction demands anymore. Replace it by struct nand_ecclayout and fixup the users all over the place. Keep the nand_oobinfo based ioctl for user space compability reasons. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/drivers/mtd/nand/s3c2410.c
|
7abd3ef9875eb2afcdcd4f450680298a2983a55e |
|
23-May-2006 |
Thomas Gleixner <tglx@cruncher.tec.linutronix.de> |
[MTD] Refactor NAND hwcontrol to cmd_ctrl The hwcontrol function enforced a step by step state machine for any kind of hardware chip access. Let the hardware driver know which control bits are set and inform it about a change of the control lines. Let the hardware driver write out the command and address bytes directly. This gives a peformance advantage for address bus controlled chips and simplifies the quirks in the hardware drivers. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/drivers/mtd/nand/s3c2410.c
|
6dfc6d250d0b7ebaa6423c44dcd09fcfe68deabd |
|
23-May-2006 |
Thomas Gleixner <tglx@cruncher.tec.linutronix.de> |
[MTD] NAND modularize ECC First step of modularizing ECC support. - Move ECC related functionality into a seperate embedded data structure - Get rid of the hardware dependend constants to simplify new ECC models Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/drivers/mtd/nand/s3c2410.c
|
552d9205186428a1e2a49ed577bcbba9f777af37 |
|
14-May-2006 |
David Woodhouse <dwmw2@infradead.org> |
[MTD] Fix module refcounting in NAND board drivers. The _board_ driver needs to be mtd->owner, and it in turn pins the nand.ko module. Fix them all to actually do that, and fix nand.ko not to overwrite it -- and also to check that the caller sets it, if the caller is a module. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
e0c7d7675331140e5186d2d1a0efce1d3877d379 |
|
13-May-2006 |
David Woodhouse <dwmw2@infradead.org> |
[MTD NAND] Indent all of drivers/mtd/nand/*.c. It was just too painful to deal with. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/drivers/mtd/nand/s3c2410.c
|
f8ce25476d5f12ffa29b885e49c38cd95053437e |
|
07-Jan-2006 |
Russell King <rmk@dyn-67.arm.linux.org.uk> |
[ARM] Move asm/hardware/clock.h to linux/clk.h This is needs to be visible to other architectures using the AMBA bus and peripherals. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
/drivers/mtd/nand/s3c2410.c
|
a8d3584a2df28827094f6338cde1303c467bc1f0 |
|
03-Jan-2006 |
Russell King <rmk@dyn-67.arm.linux.org.uk> |
[ARM] Remove clk_use()/clk_unuse() It seems that clk_use() and clk_unuse() are additional complexity which isn't required anymore. Remove them from the clock framework to avoid the additional confusion which they cause, and update all ARM machine types except for OMAP. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
/drivers/mtd/nand/s3c2410.c
|
3ae5eaec1d2d9c0cf53745352e7d4b152810ba24 |
|
09-Nov-2005 |
Russell King <rmk@dyn-67.arm.linux.org.uk> |
[DRIVER MODEL] Convert platform drivers to use struct platform_driver This allows us to eliminate the casts in the drivers, and eventually remove the use of the device_driver function pointer methods for platform device drivers. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/mtd/nand/s3c2410.c
|
61b03bd7c3b55498c6180d43bf71b7bf49114b64 |
|
07-Nov-2005 |
Thomas Gleixner <tglx@linutronix.de> |
[MTD] NAND: Clean up trailing white spaces Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/drivers/mtd/nand/s3c2410.c
|
cfd320fbfcf2ff0137d8e26f46ba4b66dae96083 |
|
20-Oct-2005 |
Ben Dooks <ben@simtec.co.uk> |
[MTD] NAND s3c2410.c: Fix timing calculation bugs Spotted by basprog@mail.ru Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/drivers/mtd/nand/s3c2410.c
|
d574504114753f52d8d2a8a0f186d2a5fcd80789 |
|
10-Oct-2005 |
Ben Dooks <ben@simtec.co.uk> |
[MTD] NAND s3c2410.c: Fix missing dev parameter to dev_err Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/drivers/mtd/nand/s3c2410.c
|
61a7275491ce3c2b0a243b1fbeda024e5faeb2c6 |
|
10-Oct-2005 |
Ben Dooks <ben@simtec.co.uk> |
[MTD] NAND: s3c2410.c Initialize owner in device_driver struct Added owner fields to the device_driver for tracking ownership when built as a module Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/drivers/mtd/nand/s3c2410.c
|
0255fc1b081cf92b56dfe5e1f3a824d050326614 |
|
26-Sep-2005 |
Ben Dooks <ben@simtec.co.uk> |
[MTD] NAND: s3c2410 use dev_err() to report errors instead of printk() Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/drivers/mtd/nand/s3c2410.c
|
4fd5f8267dd37aaebadfabe71d9c808821eea05a |
|
31-Oct-2005 |
Linus Torvalds <torvalds@g5.osdl.org> |
Merge master.kernel.org:/home/rmk/linux-2.6-drvmodel Manual #include fixups for clashes - there may be some unnecessary
|
4e57b6817880946a3a78d5d8cad1ace363f7e449 |
|
31-Oct-2005 |
Tim Schmielau <tim@physik3.uni-rostock.de> |
[PATCH] fix missing includes I recently picked up my older work to remove unnecessary #includes of sched.h, starting from a patch by Dave Jones to not include sched.h from module.h. This reduces the number of indirect includes of sched.h by ~300. Another ~400 pointless direct includes can be removed after this disentangling (patch to follow later). However, quite a few indirect includes need to be fixed up for this. In order to feed the patches through -mm with as little disturbance as possible, I've split out the fixes I accumulated up to now (complete for i386 and x86_64, more archs to follow later) and post them before the real patch. This way this large part of the patch is kept simple with only adding #includes, and all hunks are independent of each other. So if any hunk rejects or gets in the way of other patches, just drop it. My scripts will pick it up again in the next round. Signed-off-by: Tim Schmielau <tim@physik3.uni-rostock.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
/drivers/mtd/nand/s3c2410.c
|
d052d1beff706920e82c5d55006b08e256b5df09 |
|
29-Oct-2005 |
Russell King <rmk@dyn-67.arm.linux.org.uk> |
Create platform_device.h to contain all the platform device details. Convert everyone who uses platform_bus_type to include linux/platform_device.h. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/mtd/nand/s3c2410.c
|
fc611a1a50caa04bae82ed3c1fc6505132f8343f |
|
29-Sep-2005 |
Russell King <rmk@dyn-67.arm.linux.org.uk> |
[ARM] Don't include mach-types.h unnecessarily It's pointless to include mach-types.h if you're not going to use anything from it. These references were removed as a result of: grep -lr 'asm/mach-types\.h' . | xargs grep -L 'machine_is_\|MACH_TYPE_\|MACHINE_START\|machine_type' Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
/drivers/mtd/nand/s3c2410.c
|
fb8d82a865b1ff601fad8293cd6a2a1b1908545b |
|
06-Jul-2005 |
Ben Dooks <ben@simtec.co.uk> |
[MTD] NAND s3c2410: Add missing NULL pointer check Fix OOPs if there was no platform set information passed Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/drivers/mtd/nand/s3c2410.c
|
a4f957f16d41b9ff944dddd84c4892496a129f68 |
|
20-Jun-2005 |
Ben Dooks <ben@simtec.co.uk> |
[MTD] NAND: s3c24xx updates Fix error in timing generation, Tacls is only in the range 0..3 Add proper support for the s3c2440 NAND controller, which has now been tested on several s3c2440 implementations. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/drivers/mtd/nand/s3c2410.c
|
3e4ef3bb77f7b87c631ba188d4a4b4eb30b2f16f |
|
17-Mar-2005 |
Ben Dooks <ben@simtec.co.uk> |
[MTD] NAND s3c2410: Simplify command handling Updated with tglx's suggestion to simply the command invocation by simply changing the address of the IO write area Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/drivers/mtd/nand/s3c2410.c
|
fdf2fd52746bbffeffa19e24cb0608abc5429bc2 |
|
18-Feb-2005 |
Ben Dooks <ben@simtec.co.uk> |
[MTD] Sparse fixes Fix sparse errors due to lack of address-space markers Updated header comments Small re-format of initialiser Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
/drivers/mtd/nand/s3c2410.c
|
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 |
|
17-Apr-2005 |
Linus Torvalds <torvalds@ppc970.osdl.org> |
Linux-2.6.12-rc2 Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
/drivers/mtd/nand/s3c2410.c
|