]> bbs.cooldavid.org Git - net-next-2.6.git/commit
mtd: nand: Fix regression in BBM detection
authorBrian Norris <norris@broadcom.com>
Wed, 18 Aug 2010 18:25:04 +0000 (11:25 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 19 Aug 2010 14:02:19 +0000 (15:02 +0100)
commit065a1ed8de85583888b3d4f22c64b534a1fbdaaa
tree141e93d9d7db8412794cd6e34e9b91b88139a78c
parent93b352fce679945845664b56b0c3afbd655a7a12
mtd: nand: Fix regression in BBM detection

Commit c7b28e25cb9beb943aead770ff14551b55fa8c79 ("mtd: nand: refactor BB
marker detection") caused a regression in detection of factory-set bad
block markers, especially for certain small-page NAND. This fix removes
some unneeded constraints on using NAND_SMALL_BADBLOCK_POS, making the
detection code more correct.

This regression can be seen, for example, in Hynix HY27US081G1M and
similar.

Signed-off-by: Brian Norris <norris@broadcom.com>
Tested-by: Michael Guntsche <mike@it-loops.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c