imx-bbu-nand-fcb: Mark block as bad when erasing it fails
When a block cannot be erased it must be marked as bad. Previously we
accidently ignored the erase failure and the the code just wrote the
firmware into that block which resulted in boot failure.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 7e8ac4b commit 1b78b514419823b38d0540d836a49a25e53d575e
@Sascha Hauer Sascha Hauer authored on 25 Sep 2019
Showing 1 changed file
View
common/imx-bbu-nand-fcb.c