[PATCH v3 3/6] mtd: nand: erase block before marking bad

Artem Bityutskiy dedekind1 at gmail.com
Fri Jan 13 17:42:30 EST 2012


On Mon, 2012-01-09 at 12:23 -0800, Brian Norris wrote:
> Many NAND flash systems (especially those with MLC NAND) cannot be
> reliably written twice in a row. For instance, when marking a bad block,
> the block may already have data written to it, and so we should attempt
> to erase the block before writing a bad block marker to its OOB region.
> 
> We can ignore erase failures, since the block may be bad such that it
> cannot be erased properly; we still attempt to write zeros to its spare
> area.
> 
> Note that the erase must be performed before the BBT is updated, since
> otherwise, nand_erase_nand() would not allow us to erase our "bad
> block."
> 
> Signed-off-by: Brian Norris <computersforpeace at gmail.com>

This looks like an independent patch to me, is that right? If yes, you
can send it separately.

Artem.




More information about the linux-mtd mailing list