aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorAkinobu Mita <[email protected]>2017-03-14 00:59:11 +0900
committerVinod Koul <[email protected]>2017-03-14 16:14:29 +0530
commit676f9c26c330d087125769200bcf080c3c88488e (patch)
treee14d8f15528e5d452565b54835924fcc46aabb86 /scripts/patch-kernel
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff)
dmaengine: xilinx: fix device_terminate_all() callback for AXI CDMA
The device_terminate_all() callback for this driver stops current DMA operations by clearing RUNSTOP bit in the control register and waiting HALTED bit set in the status register. But AXI CDMA which is one of the supported DMA engine by this driver does not provide the run / stop controls and those bits in the control and status registers are reserved. So when device_terminate_all() is called, the error message is printed and the channel is marked as having errors in xilinx_dma_halt(). This change adds stop_transfer() callback which differentiates CDMA and other DMA engine. The CDMA's one avoids the unsupported operations and instead polls the status register to check if the DMA operations are in progress for AXI CDMA. Cc: Vinod Koul <[email protected]> Cc: Kedareswara rao Appana <[email protected]> Cc: Michal Simek <[email protected]> Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions