1. NAME▲
nand_default_block_markbad - [DEFAULT] mark a block bad
2. SYNOPSIS ▲
int nand_default_block_markbad(struct mtd_info * mtd , loff_t ofs );
3. ARGUMENTS ▲
mtd
MTD device structure
ofs
offset from device start
4. DESCRIPTION ▲
This is the default implementation, which can be overridden by a hardware specific driver. We try operations in the following order, according to our bbt_options (NAND_BBT_NO_OOB_BBM and NAND_BBT_USE_FLASH): (1) erase the affected block, to allow OOB marker to be written cleanly (2) update in-memory BBT (3) write bad block marker to OOB area of affected block (4) update flash-based BBT Note that we retain the first error encountered in (3) or (4), finish the procedures, and dump the error in the end.
5. AUTHOR ▲
Thomas Gleixner <>
Author.
6. COPYRIGHT ▲