Skip to contentSkip to conversation

crypto:ccp - invoke the DMA callback in a standard way

PATCH In review Gary R Hook 2 participants 2 messages Sep 5, 2017 – Oct 7, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto:ccp - invoke the DMA callback in a standard way

From: amd <[email protected]>

Use the provided mechanism in dmaengine.h to invoke the completion callback.

---
 drivers/crypto/ccp/ccp-dmaengine.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/crypto/ccp/ccp-dmaengine.c +1 -3
index e01b08a28ce5..8afd62052edd 100644
@@ -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);
 		}