crypto: omap-sham - clear dma flags only after omap_sham_update_dma_stop()
authorTony Lindgren <tony@atomide.com>
Tue, 27 Jul 2021 10:23:34 +0000 (13:23 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Aug 2021 11:45:23 +0000 (19:45 +0800)
commitfe28140b3393b0ba1eb95cc109f974a7e58b26fd
tree5662d706bb7297698964c13d4db2319ce150a425
parent089015d36127f2f620c7a1dca28449f676654850
crypto: omap-sham - clear dma flags only after omap_sham_update_dma_stop()

We should not clear FLAGS_DMA_ACTIVE before omap_sham_update_dma_stop() is
done calling dma_unmap_sg(). We already clear FLAGS_DMA_ACTIVE at the
end of omap_sham_update_dma_stop().

The early clearing of FLAGS_DMA_ACTIVE is not causing issues as we do not
need to defer anything based on FLAGS_DMA_ACTIVE currently. So this can be
applied as clean-up.

Cc: Lokesh Vutla <lokeshvutla@ti.com>
Cc: Tero Kristo <kristo@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c