]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor-core: Try cleaning up in case writing BAR failed
authorMarek Behún <marek.behun@nic.cz>
Tue, 5 Oct 2021 13:55:57 +0000 (15:55 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Sat, 23 Oct 2021 10:17:33 +0000 (15:47 +0530)
commit36384f612da992ab485c4b7cd768a89e8c3fe8cf
treeef7113f861329df7cc75674e6d5f48a28c51588c
parente66c6f10272cba050068017081b0996a9fa8b786
mtd: spi-nor-core: Try cleaning up in case writing BAR failed

Use the cleanup codepath of spi_nor_erase() also in the event of failure
of writing the BAR register.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Tested-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
drivers/mtd/spi/spi-nor-core.c