aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorDmitry Kasatkin <dmitry.kasatkin@nokia.com>2011-06-02 14:10:12 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2011-06-29 19:44:04 -0400
commit0efd4d8a6add75d6008a95fb628d376fb7cfcbe2 (patch)
tree3b908658ef442d9f47f3b4dc8fdc6a0d8433f8ee /drivers/crypto
parented635cb85efbeebc974c1c477ddc971f5dcc962e (diff)
crypto: omap-sham - clear device flags when finishing request
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@nokia.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/omap-sham.c4
1 files changed, 3 insertions, 1 deletions
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)
650 ctx->flags |= BIT(FLAGS_ERROR); 650 ctx->flags |= BIT(FLAGS_ERROR);
651 } 651 }
652 652
653 /* atomic operation is not needed here */
654 dd->flags &= ~(BIT(FLAGS_BUSY) | BIT(FLAGS_FINAL) | BIT(FLAGS_CPU) |
655 BIT(FLAGS_DMA_READY) | BIT(FLAGS_OUTPUT_READY));
653 clk_disable(dd->iclk); 656 clk_disable(dd->iclk);
654 dd->flags &= ~BIT(FLAGS_BUSY);
655 657
656 if (req->base.complete) 658 if (req->base.complete)
657 req->base.complete(&req->base, err); 659 req->base.complete(&req->base, err);