Skip to content
Commit 10ffd570 authored by Kyle Roeschley's avatar Kyle Roeschley Committed by Boris Brezillon
Browse files

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: default avatarKyle Roeschley <kyle.roeschley@ni.com>
Suggested-by: default avatarJeff Westfahl <jeff.westfahl@ni.com>
Tested-by: default avatarKyle Roeschley <kyle.roeschley@ni.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent c3baf278
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment