commit | 883cdc3fa4d7d4fc9b91587ada17a77df0ea0c2d | [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 | 5f46ddce0daebf81a5dfd9c3b8c61c8bca41272b [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>