mtd: nand_bbt: scan for next free bbt block if writing bbt fails
Linux commit 10ffd570f117 adapted for Barebox:

  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: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent b8571be commit eaea56bc2a30ff9d6a43b16951c0bf73d8c462d6
@Ladislav Michl Ladislav Michl authored on 28 Oct 2018
Sascha Hauer committed on 14 Dec 2018
Showing 1 changed file
View
drivers/mtd/nand/nand_bbt.c