* [PATCH] async_tx: use dmaengine_submit() API
@ 2021-06-05 15:57 Xianting Tian
0 siblings, 0 replies; only message in thread
From: Xianting Tian @ 2021-06-05 15:57 UTC (permalink / raw
To: dan.j.williams, herbert, davem; +Cc: linux-crypto, linux-kernel, Xianting Tian
Use the introduced API to submit DMA desc.
Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
---
crypto/async_tx/async_tx.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/crypto/async_tx/async_tx.c b/crypto/async_tx/async_tx.c
index 9256934..c95d90f 100644
--- a/crypto/async_tx/async_tx.c
+++ b/crypto/async_tx/async_tx.c
@@ -14,6 +14,7 @@
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/async_tx.h>
+#include <linux/dmaengine.h>
#ifdef CONFIG_DMA_ENGINE
static int __init async_tx_init(void)
@@ -110,7 +111,7 @@ struct dma_chan *
if (intr_tx) {
txd_clear_parent(intr_tx);
- intr_tx->tx_submit(intr_tx);
+ dmaengine_submit(intr_tx);
async_tx_ack(intr_tx);
}
device->device_issue_pending(chan);
@@ -118,7 +119,7 @@ struct dma_chan *
if (dma_wait_for_async_tx(depend_tx) != DMA_COMPLETE)
panic("%s: DMA error waiting for depend_tx\n",
__func__);
- tx->tx_submit(tx);
+ dmaengine_submit(tx);
}
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-05 16:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-05 15:57 [PATCH] async_tx: use dmaengine_submit() API Xianting Tian
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.