diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2016-04-05 14:20:20 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-04-05 18:09:42 +0200 |
commit | 689d3c5ecc9e2eac714d32ca152b72988bc2a67b (patch) | |
tree | aeda7249f373886568493bf2a5d826d83d8854de /Documentation | |
parent | Linux 4.6-rc1 (diff) | |
download | linux-689d3c5ecc9e2eac714d32ca152b72988bc2a67b.tar.xz linux-689d3c5ecc9e2eac714d32ca152b72988bc2a67b.zip |
dmaengine: omap-dma: Fix polled channel completion detection and handling
When based on the CCR_ENABLE bit the channel is stopped we should not call
omap_dma_callback(), only change the return value to DMA_COMPLETE. Client
drivers will do the right thing to clean up the channel after the transfer
has been completed.
Check the CCR_ENABLE only if the channel is running and not paused since
pause in sDMA means that the channel is stopped.
This will fix one hard to reproduce race condition when the channel is
terminated during transfer (affecting cyclic operation).
Fixes: 1a7cf7b26f25 ("dmaengine: omap-dma: Handle cases when the channel is polled for completion")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions