mtd: spi-nor: core: Add an error message when failing to exit the 4-byte address...
authorTudor Ambarus <tudor.ambarus@microchip.com>
Thu, 28 Jul 2022 03:01:59 +0000 (06:01 +0300)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Tue, 25 Oct 2022 02:11:35 +0000 (05:11 +0300)
commitbb0e9c600ce23a308b31e73d10b56e70a5721088
tree9592774b210a0881fa73e9131d84dafdba63fce6
parent2fe99a867050bc3506a4595acc01375a48a1b87e
mtd: spi-nor: core: Add an error message when failing to exit the 4-byte address mode

Add an error message when failing to exit the 4-byte address mode. Do not
stop the execution and go through the spi_nor_soft_reset() method if used,
in the hope that the flash will default to 3-byte address mode after the
reset.

Suggested-by: Pratyush Yadav <p.yadav@ti.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20220728030159.68680-1-tudor.ambarus@microchip.com
drivers/mtd/spi-nor/core.c