diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-02-05 14:28:26 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-02-05 14:34:16 +0100 |
commit | 3c2ce06fc2dfedd718990d215a8576ffec132908 (patch) | |
tree | 6810160a8524fd9a133d54206e7f82b0678b9c64 /drivers/mtd/nand/nand_imx.c | |
parent | 2ad441bb7e78cc789a9551b38c676a6f3e8a5dc3 (diff) | |
download | barebox-3c2ce06fc2dfedd718990d215a8576ffec132908.tar.gz barebox-3c2ce06fc2dfedd718990d215a8576ffec132908.tar.xz |
mtd: nand-imx: make sure the just created BBT is used
When we create a new BBT we write it to the flash, but the currently
running barebox doesn't use it yet, only after a reboot the BBT is
actually used. Call nand_default_bbt() to make sure the current barebox
also used the newly created BBT.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd/nand/nand_imx.c')
-rw-r--r-- | drivers/mtd/nand/nand_imx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nand_imx.c b/drivers/mtd/nand/nand_imx.c index cb5b7ee151..d69a012f01 100644 --- a/drivers/mtd/nand/nand_imx.c +++ b/drivers/mtd/nand/nand_imx.c @@ -1205,6 +1205,10 @@ static int imxnd_create_bbt(struct mtd_info *mtd) if (ret) return ret; + ret = nand_default_bbt(mtd); + if (ret) + return ret; + ret = 0; out: free(bbt); |