]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: Update fail_addr when erase fails due to bad blocks
authorFarhan Ali <farhan.ali@broadcom.com>
Wed, 24 Feb 2021 23:25:53 +0000 (15:25 -0800)
committerTom Rini <trini@konsulko.com>
Mon, 12 Apr 2021 21:17:11 +0000 (17:17 -0400)
commit7c4c4776bbe48d752695cdc728c1be1c15a3dbb4
treee8dda04332332209a06314f9bc6a2d33aea4948c
parent3157b0f0d68a82067d35f36fbac8784be6efe8f8
mtd: Update fail_addr when erase fails due to bad blocks

For all other erase failures, the fail_addr is updated with the
failing address. Only in the case of erase failure due to bad block
detection, the fail_addr is not updated. This change simply updates
the fail_addr for this specific scenario so that it is consistent with
the rest of the code.

Signed-off-by: Farhan Ali <farhan.ali@broadcom.com>
drivers/mtd/nand/raw/nand_base.c