summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2020-12-07 14:59:57 +0100
committerMark Brown <broonie@kernel.org>2020-12-07 15:18:05 +0100
commita6ff3a784ff9975dc77676827a2f448203511d19 (patch)
tree7da5d9d3f4f7c82db5abe2e8078cb63644176173 /drivers/spi
parentspi: atmel-quadspi: Fix AHB memory accesses (diff)
downloadlinux-a6ff3a784ff9975dc77676827a2f448203511d19.tar.xz
linux-a6ff3a784ff9975dc77676827a2f448203511d19.zip
spi: atmel-quadspi: Drop superfluous set of QSPI_IFR_APBTFRTYP_READ
That bit describes the APB transfer type. We are writing serial memory registers via AHB acesses, that bit does not make sense in the current context. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Link: https://lore.kernel.org/r/20201207135959.154124-3-tudor.ambarus@microchip.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/atmel-quadspi.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c
index 67ef98822366..7fb302e4063d 100644
--- a/drivers/spi/atmel-quadspi.c
+++ b/drivers/spi/atmel-quadspi.c
@@ -386,9 +386,6 @@ static int atmel_qspi_set_cfg(struct atmel_qspi *aq,
(void)atmel_qspi_read(aq, QSPI_SR);
if (aq->caps->has_ricr) {
- if (!op->addr.nbytes && op->data.dir == SPI_MEM_DATA_IN)
- ifr |= QSPI_IFR_APBTFRTYP_READ;
-
/* Set QSPI Instruction Frame registers */
atmel_qspi_write(iar, aq, QSPI_IAR);
if (op->data.dir == SPI_MEM_DATA_IN)