]> git.baikalelectronics.ru Git - uboot.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)
commit5e21b5b6695fcdf15456799cc1f065524029951d
treeef7113f861329df7cc75674e6d5f48a28c51588c
parent54d8777237b88bdcaa5c7f081512fbe4e165501f
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