]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: dmatest: Add support for completion polling
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 31 Jul 2019 07:14:38 +0000 (10:14 +0300)
committerVinod Koul <vkoul@kernel.org>
Wed, 4 Sep 2019 04:44:22 +0000 (10:14 +0530)
commit9dc4a189472a1807152c4c51a95508763207b43c
tree3c440cf1a6b520de1a0c293589df9ee7f81d34b8
parent3140f8ba35f24077618b9de0d5307cd3acd257f7
dmaengine: dmatest: Add support for completion polling

With the polled parameter the DMA drivers can be tested if they can work
correctly when no completion is requested (no DMA_PREP_INTERRUPT and no
callback is provided).

If polled mode is selected then use dma_sync_wait() to execute the test
iteration instead of relying on the completion callback.

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