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.pi...@newoldbits.com>
---
 drivers/spi/ti_qspi.c | 2 --
 1 file changed, 2 deletions(-)

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)
 #else
        memcpy_fromio(data, offset, len);
 #endif
-
-       *((unsigned int *)offset) += len;
 }
 
 static void ti_qspi_setup_mmap_read(struct ti_qspi_priv *priv, int cs,
-- 
2.26.2

Reply via email to