]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: ti: k3-udma: Respond TX done if DMA_PREP_INTERRUPT is not requested
authorVaishnav Achath <vaishnav.a@ti.com>
Wed, 14 Sep 2022 11:00:49 +0000 (16:30 +0530)
committerVinod Koul <vkoul@kernel.org>
Thu, 29 Sep 2022 17:16:09 +0000 (22:46 +0530)
commit2305387bb96b242c41810afd46e963a9483ba525
tree95579a5d835f3c592f0fc6425adc37c9cf6be944
parentaca2e8cb4df9fc6986ee07198a7f547d2261b932
dmaengine: ti: k3-udma: Respond TX done if DMA_PREP_INTERRUPT is not requested

If the DMA consumer driver does not expect the callback for TX done, then
we need not perform the channel RT byte counter calculations and estimate
the completion but return complete on first attempt itself.This assumes
that the consumer who did not request DMA_PREP_INTERRUPT has its own
mechanism for understanding TX completion, example: MCSPI EOW interrupt
can be used as TX completion signal for a SPI transaction.

Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20220914110049.5842-1-vaishnav.a@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/k3-udma.c