aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0016-crypto-ccp-invoke-the-DMA-callback-in-a-standard-way.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0016-crypto-ccp-invoke-the-DMA-callback-in-a-standard-way.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0016-crypto-ccp-invoke-the-DMA-callback-in-a-standard-way.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0016-crypto-ccp-invoke-the-DMA-callback-in-a-standard-way.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0016-crypto-ccp-invoke-the-DMA-callback-in-a-standard-way.patch
new file mode 100644
index 00000000..c7f32e89
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0016-crypto-ccp-invoke-the-DMA-callback-in-a-standard-way.patch
@@ -0,0 +1,33 @@
+From 32b7780948ec9a7dba7507ad74dfc4a50891283b Mon Sep 17 00:00:00 2001
+From: amd <amd@sosxen2.amd.com>
+Date: Tue, 5 Sep 2017 17:08:14 -0500
+Subject: [PATCH 16/95] crypto:ccp - invoke the DMA callback in a standard way
+
+Use the provided mechanism in dmaengine.h to invoke the
+completion callback.
+
+Signed-off-by: Gary R Hook <gary.hook@amd.com>
+Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
+Signed-off-by: Sudheesh Mavila <sudheesh.mavila@amd.com>
+---
+ drivers/crypto/ccp/ccp-dmaengine.c | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/drivers/crypto/ccp/ccp-dmaengine.c b/drivers/crypto/ccp/ccp-dmaengine.c
+index 64f4b57..8b9da58 100644
+--- a/drivers/crypto/ccp/ccp-dmaengine.c
++++ b/drivers/crypto/ccp/ccp-dmaengine.c
+@@ -231,9 +231,7 @@ static struct ccp_dma_desc *ccp_handle_active_desc(struct ccp_dma_chan *chan,
+ spin_unlock_irqrestore(&chan->lock, flags);
+
+ if (tx_desc) {
+- if (tx_desc->callback &&
+- (tx_desc->flags & DMA_PREP_INTERRUPT))
+- tx_desc->callback(tx_desc->callback_param);
++ dmaengine_desc_get_callback_invoke(tx_desc, NULL);
+
+ dma_run_dependencies(tx_desc);
+ }
+--
+2.7.4
+