]> 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)
commite25734b2527c364fff9872eb7080195e1e91a0da
tree56a3c619fca0fe1489c99ba60421697efb2d2f54
parent5e75d576a13b6fb99b8c09e0914f9973e9fa7382
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: 3c4308ab1949 ("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