]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: fix SCAN2NDPAGE check for BBM
authorBrian Norris <computersforpeace@gmail.com>
Sat, 14 Jan 2012 02:11:48 +0000 (18:11 -0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:11:50 +0000 (00:11 +0100)
commited149fef29bc9f67c25ca4fa801b8f49691be771
treefa354f87911bf1929c7c04925900c8523eb6722f
parentd9aed65d3d42f8012c15fc476fa0f424b862c873
mtd: nand: fix SCAN2NDPAGE check for BBM

nand_block_bad() doesn't check the correct pages when
NAND_BBT_SCAN2NDPAGE is enabled. It should scan both the OOB region of
both the 1st and 2nd page of each block.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c