From 735d44368f32f21b45df6d3fe9ad2dbcd4ca5d41 Mon Sep 17 00:00:00 2001 From: Adrian Bonislawski Date: Fri, 11 Feb 2022 10:32:21 +0100 Subject: [PATCH] probe: update dma copy method to dma_copy_to_host() dma_copy_to_host_nowait() no longer exists and needs to be updated Fixes commit 443b21de4b3f ("dma-trace: Fix potential race issue by using blocking DMA copy") Signed-off-by: Adrian Bonislawski --- src/probe/probe.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/probe/probe.c b/src/probe/probe.c index 7b3f462d2..0719493a7 100644 --- a/src/probe/probe.c +++ b/src/probe/probe.c @@ -869,10 +869,10 @@ static void probe_cb_produce(void *arg, enum notify_id type, void *data) /* check if copy_bytes is still valid for dma copy */ if (copy_bytes > 0) { - ret = dma_copy_to_host_nowait(&dma->dc, - &dma->config, 0, - (void *)dma->dmapb.r_ptr, - copy_bytes); + ret = dma_copy_to_host(&dma->dc, + &dma->config, 0, + (void *)dma->dmapb.r_ptr, + copy_bytes); if (ret < 0) goto err;