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
ams-delta.c
at91_nand.c [MTD] [NAND] at91_nand: Make part_probes[] static 2008-04-22 14:50:40 +01:00
au1550nd.c
autcpu12.c
bf5xx_nand.c [MTD] [NAND] fix platform driver hotplug/coldplug 2008-04-22 14:17:47 +01:00
cafe_nand.c
cmx270_nand.c
cs553x_nand.c [MTD] [NAND] mtd/nand/cs553x_nand.c:part_probes[] static 2008-04-22 12:35:40 +01:00
diskonchip.c
edb7312.c
excite_nandflash.c
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
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
nand_ecc.c
nand_ids.c
nandsim.c
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
plat_nand.c [MTD] [NAND] fix platform driver hotplug/coldplug 2008-04-22 14:17:47 +01:00
ppchameleonevb.c
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
spia.c
toto.c
ts7250.c