[PATCH] [2.6.23] nand_flash_dev - add manufacturer ID

David Woodhouse dwmw2 at infradead.org
Tue Jul 3 20:03:44 EDT 2007


On Tue, 2007-07-03 at 16:54 -0700, Egor Martovetsky wrote:
> Patch for adding the manufacturer's ID to the nand_flash_dev
> struct.  This is needed to avoid selecting wrong flash device,
> when device ID happens to be the same for different devices.
> This change was prompted by addition of Micron MT29F4G08BABWP,
> whose device ID(0xDC), matches a device ID of a Samsung flash.

Hm. Please provide name and ICBM coordinates of the hardware engineers
involved.

On the other hand, it _is_ very similar to that Samsung flash.

+       {"NAND 512MiB 3,3V 8-bit", -1, 0xDC, 0, 512, 0, LP_OPTIONS},

+       /* Micron MT29F4G08BABWP 4 Gigabit device */
+       {"NAND 512MiB 3,3V 8-bit", NAND_MFR_MICRON, 0xDC, 0, 512, 0,
+        NAND_NO_AUTOINCR | NAND_CACHEPRG | NAND_NO_READRDY

The difference between LP_OPTIONS and the options you've set for the new
chip is just NAND_NO_PADDING | NAND_COPYBACK, right? Neither of which we
actually use right now _anyway_.

I wonder if we should do this differently, and mask certain features in
or out according to the manufacturer, after identifying the chip.

Thomas?

-- 
dwmw2




More information about the linux-mtd mailing list