Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c07f7c29 authored by amd's avatar amd Committed by Herbert Xu
Browse files

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: default avatarGary R Hook <gary.hook@amd.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 01c4c097
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);
		}