2021-06-05 16:32:58

by Xianting Tian

[permalink] [raw]
Subject: [PATCH] async_tx: use dmaengine_submit() API

Use the introduced API to submit DMA desc.

Signed-off-by: Xianting Tian <[email protected]>
---
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