]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: remove NAND_BBT_SCANBYTE1AND6 option
authorBrian Norris <computersforpeace@gmail.com>
Tue, 31 May 2011 23:31:20 +0000 (16:31 -0700)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:01:46 +0000 (15:01 +0300)
commit531210ffbbe422927c8904e93754a1d1c9f333f2
tree62c71971d00f60fedcb5b265614c8925493877ad
parent5dc26989faddf5ca46fc45cfc0e2259d64fed221
mtd: nand: remove NAND_BBT_SCANBYTE1AND6 option

This patch reverts most of:
    commit a09826bb31586530f166ff5121ff6631e2e3e478
    mtd: nand: more BB Detection refactoring and dynamic scan options

According to the discussion at:
    http://lists.infradead.org/pipermail/linux-mtd/2011-May/035696.html
the NAND_BBT_SCANBYTE1AND6 flag, although technically valid, can break
some existing ECC layouts that use the 6th byte in the OOB for ECC data.
Furthermore, we apparently do not need to scan both bytes 1 and 6 in
the OOB region of the devices under consideration; instead, we only need
to scan one or the other.

Thus, the NAND_BBT_SCANBYTE1AND6 flag is at best unnecessary and at
worst a regression.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/nand_bbt.c
include/linux/mtd/bbm.h