bug report about nand flash id table and the way to identify chips

Thomas Gleixner tglx at linutronix.de
Thu Apr 10 01:48:29 EDT 2008


On Thu, 10 Apr 2008, bhsong at augustatek.com wrote:
> Dear all&Thomas,
> There is a bug in the way to identify nand chips.
> At the array nand_flash_ids[]  of nand_ids.c, there is a line like that:
>  {"NAND 4MiB 3,3V 8-bit",        0xd5, 512, 4, 0x2000, 0},

and the line above is guarded by:

#ifdef CONFIG_MTD_NAND_MUSEUM_IDS

which is default off.

>From Kconfig:

config MTD_NAND_MUSEUM_IDS
        bool "Enable chip ids for obsolete ancient NAND devices"
        depends on MTD_NAND
        default n
        help
          Enable this option only when your board has first generation
          NAND chips (page size 256 byte, erase size 4-8KiB). The IDs
          of these chips were reused by later, larger chips.            

So there is no bug at all.

Thanks,
	tglx



More information about the linux-mtd mailing list