[PATCH 1/1] async_tx: replace direct ->device_prep*() calls with standard DMA engine API

From: Frank . Li

Date: Thu Sep 17 2026 - 19:54:22 EST


From: Frank Li <Frank.Li@xxxxxxx>

DMA engine consumers must not call the channel's device_prep_*() function
pointers directly. Use the standard dmaengine wrapper APIs instead.

Signed-off-by: Frank Li <Frank.Li@xxxxxxx>
---
crypto/async_tx/async_memcpy.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/crypto/async_tx/async_memcpy.c b/crypto/async_tx/async_memcpy.c
index c538e30e99094..627b6ad9313e0 100644
--- a/crypto/async_tx/async_memcpy.c
+++ b/crypto/async_tx/async_memcpy.c
@@ -58,9 +58,9 @@ async_memcpy(struct page *dest, struct page *src, unsigned int dest_offset,
DMA_FROM_DEVICE);
unmap->len = len;

- tx = device->device_prep_dma_memcpy(chan, unmap->addr[1],
- unmap->addr[0], len,
- dma_prep_flags);
+ tx = dmaengine_prep_dma_memcpy(chan, unmap->addr[1],
+ unmap->addr[0], len,
+ dma_prep_flags);
}

if (tx) {
--
2.43.0