projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01c4c09
)
crypto:ccp - invoke the DMA callback in a standard way
author
amd
<amd@sosxen2.amd.com>
Tue, 5 Sep 2017 22:08:14 +0000
(17:08 -0500)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 7 Oct 2017 04:10:30 +0000
(12:10 +0800)
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>
drivers/crypto/ccp/ccp-dmaengine.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/ccp/ccp-dmaengine.c
b/drivers/crypto/ccp/ccp-dmaengine.c
index 64f4b571202ae817d61640880fa4c3be8dcdb497..8b9da58459df1707511e3049359a3d536e163117 100644
(file)
--- 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);
}