[PATCH v2] mtd: nand: write bad block marker even with BBT

Shmulik Ladkani shmulik.ladkani at gmail.com
Fri Dec 23 03:13:53 EST 2011


On Wed, 21 Dec 2011 17:15:29 -0800 Brian Norris <computersforpeace at gmail.com> wrote:
> Another question: I noticed that when writing bad block markers to
> OOB, we simply overwrite without erasing first. This is a problem on
> MLC, which aren't designed to be written twice; they usually can write
> some of the bits to 0, but not all of them. Is it reasonable to change
> nand_default_block_markbad() to always have it erase the block before
> writing?

Not an MLC expert, but could it be that for these MLC chips,
NAND_BBT_USE_FLASH is usually set, hence the complexities invloved in
re-programming the OOB are simply avoided?

If so, it stregthens your NAND_BBT_WRITE_BBM/NAND_NO_WRITE_OOB approach,
which goes hand-in-hand with Sebastian's scenario where there's no room
in the OOB.



More information about the linux-mtd mailing list