commit | 36384f612da992ab485c4b7cd768a89e8c3fe8cf | [log] [tgz] |
---|---|---|
author | Marek BehĂșn <marek.behun@nic.cz> | Tue Oct 05 15:55:57 2021 +0200 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Sat Oct 23 15:47:33 2021 +0530 |
tree | ef7113f861329df7cc75674e6d5f48a28c51588c | |
parent | e66c6f10272cba050068017081b0996a9fa8b786 [diff] |
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>