All of lore.kernel.org
 help / color / mirror / Atom feed
* dmaengine: dmatest: use dmaengine_terminate_sync() instead
@ 2018-10-29  9:23 Alexandru Ardelean
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandru Ardelean @ 2018-10-29  9:23 UTC (permalink / raw)
  To: dmaengine, dan.j.williams, vinod.koul; +Cc: Alexandru Ardelean

The `dmaengine_terminate_all()` is marked as deprecated, so update the test
with `dmaengine_terminate_sync()` which is the recommended alternative.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
---
 drivers/dma/dmatest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c
index aa1712beb0cc..9cd09e8f9b4f 100644
--- a/drivers/dma/dmatest.c
+++ b/drivers/dma/dmatest.c
@@ -812,7 +812,7 @@ static int dmatest_func(void *data)
 
 	/* terminate all transfers on specified channels */
 	if (ret || failed_tests)
-		dmaengine_terminate_all(chan);
+		dmaengine_terminate_sync(chan);
 
 	thread->done = true;
 	wake_up(&thread_wait);
@@ -836,7 +836,7 @@ static void dmatest_cleanup_channel(struct dmatest_chan *dtc)
 	}
 
 	/* terminate all transfers on specified channels */
-	dmaengine_terminate_all(dtc->chan);
+	dmaengine_terminate_sync(dtc->chan);
 
 	kfree(dtc);
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* dmaengine: dmatest: use dmaengine_terminate_sync() instead
@ 2018-11-24 13:46 Vinod Koul
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2018-11-24 13:46 UTC (permalink / raw)
  To: Alexandru Ardelean; +Cc: dmaengine, dan.j.williams, vinod.koul

On 29-10-18, 11:23, Alexandru Ardelean wrote:
> The `dmaengine_terminate_all()` is marked as deprecated, so update the test
> with `dmaengine_terminate_sync()` which is the recommended alternative.

Applied, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-24 13:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-29  9:23 dmaengine: dmatest: use dmaengine_terminate_sync() instead Alexandru Ardelean
2018-11-24 13:46 Vinod Koul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.