From: Dmitry Kasatkin Date: Thu, 2 Jun 2011 18:10:12 +0000 (+0300) Subject: crypto: omap-sham - clear device flags when finishing request X-Git-Tag: firefly_0821_release~3680^2~4958^2~18 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0efd4d8a6add75d6008a95fb628d376fb7cfcbe2;p=firefly-linux-kernel-4.4.55.git crypto: omap-sham - clear device flags when finishing request Signed-off-by: Dmitry Kasatkin Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index 7ca707536f8d..804c16bc2d61 100644 --- a/drivers/crypto/omap-sham.c +++ b/drivers/crypto/omap-sham.c @@ -650,8 +650,10 @@ static void omap_sham_finish_req(struct ahash_request *req, int err) ctx->flags |= BIT(FLAGS_ERROR); } + /* atomic operation is not needed here */ + dd->flags &= ~(BIT(FLAGS_BUSY) | BIT(FLAGS_FINAL) | BIT(FLAGS_CPU) | + BIT(FLAGS_DMA_READY) | BIT(FLAGS_OUTPUT_READY)); clk_disable(dd->iclk); - dd->flags &= ~BIT(FLAGS_BUSY); if (req->base.complete) req->base.complete(&req->base, err);