]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: nand: Fix probe of Samsung NAND chips
authorTilman Sauerbeck <tilman@code-monkey.de>
Fri, 20 Aug 2010 21:01:47 +0000 (14:01 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:45:54 +0000 (16:45 -0700)
commit01be8ecc0e14a6c3478088f73cdaf2008d1dbdec
treedd8fd592e090365fe4dd9871a71d22e83f1c8000
parente5c9bc34a675a7f9d88c63fd63815a531306a36e
mtd: nand: Fix probe of Samsung NAND chips

commit cfe3fdadb16162327773ef01a575a32000b8c7f4 upstream.

Apparently, the check for a 6-byte ID string introduced by commit
426c457a3216fac74e3d44dd39729b0689f4c7ab ("mtd: nand: extend NAND flash
detection to new MLC chips") is NOT sufficient to determine whether or
not a Samsung chip uses their new MLC detection scheme or the old,
standard scheme. This adds a condition to check cell type.

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
Signed-off-by: Brian Norris <norris@broadcom.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mtd/nand/nand_base.c