]> 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)
commit4e0afcf0ead9fb8bc60dd09f4600f4e73e16c62a
tree62c71971d00f60fedcb5b265614c8925493877ad
parent6be414261274f5b78cac0ded301aeb4155fe3200
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