summaryrefslogtreecommitdiffstats
path: root/drivers/dma/img-mdc-dma.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2019-07-16 10:26:55 +0200
committerVinod Koul <vkoul@kernel.org>2019-07-29 08:41:38 +0200
commitaa3c6ce4eab8fb0e967954be1ba1cad3b715f63b (patch)
treebd01cc1b347fa53e617ea734ad5497c46c41c0cb /drivers/dma/img-mdc-dma.c
parentdmaengine: ti: edma: Correct the residue calculation (fix for memcpy) (diff)
downloadlinux-aa3c6ce4eab8fb0e967954be1ba1cad3b715f63b.tar.xz
linux-aa3c6ce4eab8fb0e967954be1ba1cad3b715f63b.zip
dmaengine: ti: edma: Support for polled (memcpy) completion
When a DMA client driver does not set the DMA_PREP_INTERRUPT because it does not want to use interrupts for DMA completion or because it can not rely on DMA interrupts due to executing the memcpy when interrupts are disabled it will poll the status of the transfer. Since we can not tell from any EDMA register that the transfer is completed, we can only know that the paRAM set has been sent to TPTC for processing we need to check the residue of the transfer, if it is 0 then the transfer is completed. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Link: https://lore.kernel.org/r/20190716082655.1620-4-peter.ujfalusi@ti.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/img-mdc-dma.c')
0 files changed, 0 insertions, 0 deletions