diff options
author | Dmitry Kasatkin <dmitry.kasatkin@nokia.com> | 2011-06-02 18:10:13 (GMT) |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-06-29 23:44:05 (GMT) |
commit | cd3f1d545c45489c88fbc71a82559664b8bf0bb2 (patch) | |
tree | d8216ea23928ad6ebe626470d38ceb7953c0137d /drivers | |
parent | 0efd4d8a6add75d6008a95fb628d376fb7cfcbe2 (diff) | |
download | linux-cd3f1d545c45489c88fbc71a82559664b8bf0bb2.tar.xz |
crypto: omap-sham - do not schedule tasklet if there is no active requests
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/omap-sham.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index 804c16b..6399a8f 100644 --- a/drivers/crypto/omap-sham.c +++ b/drivers/crypto/omap-sham.c @@ -1085,6 +1085,11 @@ static irqreturn_t omap_sham_irq(int irq, void *dev_id) SHA_REG_CTRL_OUTPUT_READY); omap_sham_read(dd, SHA_REG_CTRL); + if (!test_bit(FLAGS_BUSY, &dd->flags)) { + dev_warn(dd->dev, "Interrupt when no active requests.\n"); + return IRQ_HANDLED; + } + set_bit(FLAGS_OUTPUT_READY, &dd->flags); tasklet_schedule(&dd->done_task); |