[PATCH v3 0/6] NAND BBM + BBT updates
Brian Norris
computersforpeace at gmail.com
Mon Jan 9 15:23:26 EST 2012
This patch series is an update to a previous patch (that has split into
a few patches) with a few additional patches at the end. The important
segments of this series involve the default steps for marking new bad
blocks when using a flash-based BBT. The new default behavior will write
to the BBT as well as attempting to write a BBM to the OOB area of the
bad block. See the patch descriptions for details.
The first patch, regarding NAND_NO_WRITE_OOB, is a first attempt at
satisfying Sebastian's concerns that some systems utilize the entire OOB
area for ECC, and so we need an option to prevent writing markers to
OOB. My attempt to prevent other OOB writes may be misguided,
incomplete, flawed in some other way, or some combination of the three.
Please provide constructive criticism.
v3: writing to flash-based BBT and to BBM is still default, but
there is a new option NAND_NO_WRITE_OOB that can prevent writing the
BBM as well as prevent all other OOB writes.
Brian Norris (6):
mtd: nand: add NAND_NO_WRITE_OOB option
mtd: nand: write bad block marker by default even with BBT
mtd: nand: erase block before marking bad
mtd: nand: fix SCAN2NDPAGE check for BBM
mtd: nand: differentiate 1- vs. 2-byte writes when marking bad blocks
mtd: nand: correct comment on nand_chip badblockbits
drivers/mtd/nand/nand_base.c | 79 ++++++++++++++++++++++++++++-------------
include/linux/mtd/nand.h | 11 +++++-
2 files changed, 63 insertions(+), 27 deletions(-)
--
1.7.5.4
More information about the linux-mtd
mailing list