Skip to content

Commit 646728d

Browse files
committed
dmaengine: Revert "dmaengine: add verification of DMA_INTERRUPT capability for dmatest"
This reverts commit a8facc7 ("dmaengine: add verification of DMA_INTERRUPT capability for dmatest") as it causes regression due to the fact that DMA_INTERRUPT in linked to dma_prep_interrupt() so checking that is incorrect here Signed-off-by: Vinod Koul <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 615a4bf commit 646728d

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

drivers/dma/dmatest.c

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -675,16 +675,10 @@ static int dmatest_func(void *data)
675675
/*
676676
* src and dst buffers are freed by ourselves below
677677
*/
678-
if (params->polled) {
678+
if (params->polled)
679679
flags = DMA_CTRL_ACK;
680-
} else {
681-
if (dma_has_cap(DMA_INTERRUPT, dev->cap_mask)) {
682-
flags = DMA_CTRL_ACK | DMA_PREP_INTERRUPT;
683-
} else {
684-
pr_err("Channel does not support interrupt!\n");
685-
goto err_pq_array;
686-
}
687-
}
680+
else
681+
flags = DMA_CTRL_ACK | DMA_PREP_INTERRUPT;
688682

689683
ktime = ktime_get();
690684
while (!(kthread_should_stop() ||
@@ -912,7 +906,6 @@ static int dmatest_func(void *data)
912906
runtime = ktime_to_us(ktime);
913907

914908
ret = 0;
915-
err_pq_array:
916909
kfree(dma_pq);
917910
err_srcs_array:
918911
kfree(srcs);

0 commit comments

Comments
 (0)