spi: atmel-quadspi: Write QSPI_IAR only when needed
authorTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 7 Dec 2020 13:59:58 +0000 (15:59 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 7 Dec 2020 14:18:06 +0000 (14:18 +0000)
commitd00364b6a60475cd75fd07e847ad6f955952638b
tree3769483b75a0a6b212e555fbe6b3de7d8598270c
parenta6ff3a784ff9975dc77676827a2f448203511d19
spi: atmel-quadspi: Write QSPI_IAR only when needed

The address must be written in QSPI_IAR only when we have
a instruction frame with address but no data.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20201207135959.154124-4-tudor.ambarus@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/atmel-quadspi.c