mtd: nand_bbt: scan for next free bbt block if writing bbt fails
authorKyle Roeschley <kyle.roeschley@ni.com>
Mon, 15 Aug 2016 23:22:02 +0000 (18:22 -0500)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 17 Aug 2016 11:56:43 +0000 (13:56 +0200)
commite5c88bb4ce0ac9b6f052e4aa22c6695b0a7ab1da
treedf118023cd0fce677fc1e640bc927a7071a743e7
parentaf167ad01e83431531e361bb11c196d8bcf76350
mtd: nand_bbt: scan for next free bbt block if writing bbt fails

If erasing or writing the BBT fails, we should mark the current BBT
block as bad and use the BBT descriptor to scan for the next available
unused block in the BBT. We should only return a failure if there isn't
any space left.

Signed-off-by: Kyle Roeschley <kyle.roeschley@ni.com>
Suggested-by: Jeff Westfahl <jeff.westfahl@ni.com>
Tested-by: Kyle Roeschley <kyle.roeschley@ni.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/nand_bbt.c
This page took 0.024932 seconds and 5 git commands to generate.