From: Brian Norris Date: Wed, 18 Aug 2010 18:25:04 +0000 (-0700) Subject: mtd: nand: Fix regression in BBM detection X-Git-Tag: v2.6.36-rc2~6^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=065a1ed8de85583888b3d4f22c64b534a1fbdaaa;p=pandora-kernel.git 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 Tested-by: Michael Guntsche Signed-off-by: David Woodhouse --- Reading git-diff-tree failed