lkml.org 
[lkml]   [2021]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] async_tx: use dmaengine_submit() API
Date
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
\
 
 \ /
  Last update: 2021-06-05 18:30    [W:0.016 / U:1.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site