linux/drivers/mtd/nand
Anton Vorontsov 9ebed3e60f [MTD] [NAND] fsl_elbc_nand: fix mtd name
Currently fsl_elbc_nand doesn't initialize mtd->name, and this causes
nand_get_flash_type() to assign name that is equal to chip type, like
this:

   root@b1:~# cat /proc/mtd
   dev:    size   erasesize  name
   mtd0: 00800000 00010000 "fe000000.flash"
   mtd1: 02000000 00004000 "NAND 32MiB 3,3V 8-bit"

mtd0 is physmap_of flash (normal name), and mtd1 is fsl_elbc_nand.

Despite inconsistency, with mtd name like this specifying paritions
from the kernel command line becomes a torture (though, I didn't tried
and not sure if mtdparts= can handle spaces at all). Plus, this causes
real bugs when multiple fsl_elbc_nand chips registered.

With this patch applied fsl_elbc_nand chip will have proper name:

   root@b1:~# cat /proc/mtd
   dev:    size   erasesize  name
   mtd0: 00800000 00010000 "fe000000.flash"
   mtd1: 02000000 00004000 "e0600000.flash"

p.s. We can't use priv->dev->bus_id as in physmap_of, because
fsl_elbc_nand pretends to be a localbus controller, so its bus_id is
"address.localbus", which is incorrect and thus will also not work
for multiple chips.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2008-04-22 20:50:31 +01:00
..
alauda.c [MTD] [NAND] Fix compiler warning in Alauda driver 2007-10-13 14:33:27 +01:00
ams-delta.c [PATCH] MTD NAND: Fix ams-delta after core conversion 2006-08-27 11:01:30 -07:00
at91_nand.c [MTD] [NAND] at91_nand: Make part_probes[] static 2008-04-22 14:50:40 +01:00
au1550nd.c [MTD NAND] Remove old code in au1550nd.c 2006-09-22 10:09:44 +01:00
autcpu12.c drivers/mtd/: Spelling fixes 2008-02-03 17:22:34 +02:00
bf5xx_nand.c [MTD] [NAND] fix platform driver hotplug/coldplug 2008-04-22 14:17:47 +01:00
cafe_nand.c [MTD] [NAND] Check for RedBoot partitions on CAFÉ NAND 2007-10-28 21:56:39 -04:00
cmx270_nand.c [MTD] [NAND] CM-x270 MTD driver 2007-04-27 23:04:32 +01:00
cs553x_nand.c [MTD] [NAND] mtd/nand/cs553x_nand.c:part_probes[] static 2008-04-22 12:35:40 +01:00
diskonchip.c [MTD] [NAND] Replace -1 with -EBADMSG in nand error correction code 2007-10-20 22:30:54 +01:00
edb7312.c drivers/mtd/: Spelling fixes 2008-02-03 17:22:34 +02:00
excite_nandflash.c [MTD] Clean up duplicate includes in drivers/mtd/ 2007-07-23 11:56:27 +01:00
fsl_elbc_nand.c [MTD] [NAND] fsl_elbc_nand: fix mtd name 2008-04-22 20:50:31 +01:00
fsl_upm.c [MTD] [NAND] FSL UPM NAND driver 2008-04-22 20:46:30 +01:00
h1910.c [MTD] Refactor NAND hwcontrol to cmd_ctrl 2006-05-23 23:25:53 +02:00
Kconfig [MTD] [NAND] FSL UPM NAND driver 2008-04-22 20:46:30 +01:00
Makefile [MTD] [NAND] FSL UPM NAND driver 2008-04-22 20:46:30 +01:00
nand_base.c Merge git://git.infradead.org/mtd-2.6 2008-02-07 10:20:31 -08:00
nand_bbt.c [MTD] replace kmalloc+memset with kzalloc 2006-11-28 23:47:21 +00:00
nand_ecc.c [MTD] [NAND] Replace -1 with -EBADMSG in nand error correction code 2007-10-20 22:30:54 +01:00
nand_ids.c [MTD] [NAND] Add NAND manufacturer AMD. 2007-07-23 11:51:53 +01:00
nandsim.c drivers/mtd/: Spelling fixes 2008-02-03 17:22:34 +02:00
ndfc.c [MTD] [NAND] fix platform driver hotplug/coldplug 2008-04-22 14:17:47 +01:00
orion_nand.c [MTD] [NAND] fix platform driver hotplug/coldplug 2008-04-22 14:17:47 +01:00
pasemi_nand.c [MTD] [NAND] pasemi_nand driver 2007-11-29 00:47:13 +00:00
plat_nand.c [MTD] [NAND] fix platform driver hotplug/coldplug 2008-04-22 14:17:47 +01:00
ppchameleonevb.c parse errors in ifdefs 2007-06-01 08:18:28 -07:00
pxa3xx_nand.c [MTD] [NAND] Fix checkpatch errors in pxa3xx_nand 2008-04-22 20:39:43 +01:00
rtc_from4.c [MTD] [NAND] fix possible Ooops in rfc_from4 2008-04-22 14:13:14 +01:00
s3c2410.c [MTD] [NAND] fix platform driver hotplug/coldplug 2008-04-22 14:17:47 +01:00
sharpsl.c drivers/mtd/: Spelling fixes 2008-02-03 17:22:34 +02:00
spia.c [MTD] Refactor NAND hwcontrol to cmd_ctrl 2006-05-23 23:25:53 +02:00
toto.c [MTD] NAND modularize write function 2006-05-26 18:52:08 +02:00
ts7250.c [MTD] NAND: Fix typo in mtd/nand/ts7250.c 2006-06-27 23:20:48 +01:00