Skip to content
Commit 44a80df4 authored by Alexander Sverdlin's avatar Alexander Sverdlin Committed by Tudor Ambarus
Browse files

mtd: spi-nor: intel-spi: Simulate WRDI command



After spi_nor_write_disable() return code checks were introduced in the
spi-nor front end intel-spi backend stopped to work because WRDI was never
supported and always failed.

Just pretend it was sucessful and ignore the command itself. HW sequencer
shall do the right thing automatically, while with SW sequencer we cannot
do it anyway, because the only tool we had was preopcode and it makes no
sense for WRDI.

Fixes: bce679e5 ("mtd: spi-nor: Check for errors after each Register Operation")
Signed-off-by: default avatarAlexander Sverdlin <alexander.sverdlin@nokia.com>
Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/282e1305-fd08-e446-1a22-eb4dff78cfb4@nokia.com


Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
parent fb249e10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment