Commit fbffb6b4 authored by Alexandru Ardelean's avatar Alexandru Ardelean Committed by Vinod Koul

dmaengine: dmatest: use dmaengine_terminate_sync() instead

The `dmaengine_terminate_all()` is marked as deprecated, so update the test
with `dmaengine_terminate_sync()` which is the recommended alternative.
Signed-off-by: default avatarAlexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 0255200b
...@@ -810,7 +810,7 @@ static int dmatest_func(void *data) ...@@ -810,7 +810,7 @@ static int dmatest_func(void *data)
/* terminate all transfers on specified channels */ /* terminate all transfers on specified channels */
if (ret || failed_tests) if (ret || failed_tests)
dmaengine_terminate_all(chan); dmaengine_terminate_sync(chan);
thread->done = true; thread->done = true;
wake_up(&thread_wait); wake_up(&thread_wait);
...@@ -834,7 +834,7 @@ static void dmatest_cleanup_channel(struct dmatest_chan *dtc) ...@@ -834,7 +834,7 @@ static void dmatest_cleanup_channel(struct dmatest_chan *dtc)
} }
/* terminate all transfers on specified channels */ /* terminate all transfers on specified channels */
dmaengine_terminate_all(dtc->chan); dmaengine_terminate_sync(dtc->chan);
kfree(dtc); kfree(dtc);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment