]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-cadence-quadspi: Fix mapping of buffers for DMA reads
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 31 Aug 2020 13:07:20 +0000 (18:37 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 8 Sep 2020 14:20:10 +0000 (15:20 +0100)
commitb0d9113924041206db9c9cecae486454706d76f2
tree56a3c619fca0fe1489c99ba60421697efb2d2f54
parent8559b7379b19ffc8f9d108307743e5f1ff6c0b1c
spi: spi-cadence-quadspi: Fix mapping of buffers for DMA reads

Buffers need to mapped to DMA channel's device pointer instead of SPI
controller's device pointer as its system DMA that actually does data
transfer.
Data inconsistencies have been reported when reading from flash
without this fix.

Fixes: 37d77004514e ("mtd: spi-nor: cadence-quadspi: Add DMA support for direct mode reads")
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Tested-by: Jan Kiszka <jan.kiszka@siemens.com>
Link: https://lore.kernel.org/r/20200831130720.4524-1-vigneshr@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-quadspi.c