[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1622908639-8774-1-git-send-email-xianting_tian@126.com>
Date: Sat, 5 Jun 2021 11:57:19 -0400
From: Xianting Tian <xianting_tian@....com>
To: dan.j.williams@...el.com, herbert@...dor.apana.org.au,
davem@...emloft.net
Cc: linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
Xianting Tian <xianting.tian@...ux.alibaba.com>
Subject: [PATCH] async_tx: use dmaengine_submit() API
Use the introduced API to submit DMA desc.
Signed-off-by: Xianting Tian <xianting.tian@...ux.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
Powered by blists - more mailing lists