aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/tests
diff options
context:
space:
mode:
authorKyle Roeschley <kyle.roeschley@ni.com>2016-08-15 18:22:02 -0500
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-09-23 09:35:16 +0200
commit10ffd570f11701972aff2a6f91f3d253d6f0e7ee (patch)
tree2dfb9bdfd70f15c4167bbe359ead802b07e47252 /drivers/mtd/tests
parentmtd: nand_bbt: Move BBT block selection logic out of write_bbt() (diff)
downloadlinux-dev-10ffd570f11701972aff2a6f91f3d253d6f0e7ee.tar.xz
linux-dev-10ffd570f11701972aff2a6f91f3d253d6f0e7ee.zip
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>
Diffstat (limited to 'drivers/mtd/tests')
0 files changed, 0 insertions, 0 deletions