diff mbox series

[3/3] TI QSPI: prevent a 4-byte write to the flash on read access

Message ID 20201129103948.158293-3-jean.pihet@newoldbits.com
State Changes Requested
Delegated to: Lokesh Vutla
Headers show
Series [1/3] mtd: spi nor: add support for dual and quad bit transfers | expand

Commit Message

Jean Pihet Nov. 29, 2020, 10:39 a.m. UTC
In MMIO mode, a write to the flash generates write commands to the device.
Prevent this from happening when reading from the device.

Signed-off-by: Jean Pihet <jean.pihet@newoldbits.com>
 drivers/spi/ti_qspi.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series


diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c
index 57192b9c0a..40e1988df5 100644
--- a/drivers/spi/ti_qspi.c
+++ b/drivers/spi/ti_qspi.c
@@ -305,8 +305,6 @@  static void ti_qspi_copy_mmap(void *data, void *offset, size_t len)
 	memcpy_fromio(data, offset, len);
-	*((unsigned int *)offset) += len;
 static void ti_qspi_setup_mmap_read(struct ti_qspi_priv *priv, int cs,