]> asedeno.scripts.mit.edu Git - linux.git/commit
dmaengine: ti: omap-dma: Improved memcpy polling support
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 16 Jul 2019 08:24:59 +0000 (11:24 +0300)
committerVinod Koul <vkoul@kernel.org>
Mon, 29 Jul 2019 06:35:01 +0000 (12:05 +0530)
commit4689d35c765c696bdf0535486a990038b242a26b
treed86f80227e9dd6e67ca7cf0a59a3bb92970fb674
parentaac8670369dc017609b8e8870975641ad3143448
dmaengine: ti: omap-dma: Improved memcpy polling support

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.

If the interrupts are enabled then the cookie will be set completed in the
interrupt handler so only check in HW completion when the polling is really
needed.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20190716082459.1222-3-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/omap-dma.c