]> asedeno.scripts.mit.edu Git - linux.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)
commitfb9816f9d05f01330b27ddf5dfa93d0f848e3405
tree3c440cf1a6b520de1a0c293589df9ee7f81d34b8
parent9fa2df6eafa024e9f10ff60518ab62abe1c6cfb6
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