[PATCH v5] mtd: nand_bbt: scan for next free bbt block if writing bbt fails

2016-06-21 Thread Kyle Roeschley
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. Based on original code implemented by Jeff Westfahl

[PATCH v5] mtd: nand_bbt: scan for next free bbt block if writing bbt fails

2016-06-21 Thread Kyle Roeschley
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. Based on original code implemented by Jeff Westfahl . Signed-off-by: