Skip to contentSkip to conversation

async_tx: replace direct ->device_prep*() calls with standard DMA engine API

PATCH New [email protected] 1 participant 1 message Sep 17

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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

From: Frank Li <[email protected]>

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

---
 crypto/async_tx/async_memcpy.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
crypto/async_tx/async_memcpy.c +3 -3
index c538e30e99094..627b6ad9313e0 100644
@@ -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) {
Signature · 1 line
2.43.0