]> git.openfabrics.org - ~shefty/rdma-dev.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)
commitcdbec0508699e3346052bf098c5c330a711a86a9
treefa354f87911bf1929c7c04925900c8523eb6722f
parent009184296d957d864d6fa9ac2dd192d29e069878
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