diff options
author | Dmitry Kasatkin <dmitry.kasatkin@nokia.com> | 2011-06-02 14:10:13 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-06-29 19:44:05 -0400 |
commit | cd3f1d545c45489c88fbc71a82559664b8bf0bb2 (patch) | |
tree | d8216ea23928ad6ebe626470d38ceb7953c0137d /drivers/crypto/omap-sham.c | |
parent | 0efd4d8a6add75d6008a95fb628d376fb7cfcbe2 (diff) |
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/crypto/omap-sham.c')
-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 804c16bc2d61..6399a8f1938a 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) | |||
1085 | SHA_REG_CTRL_OUTPUT_READY); | 1085 | SHA_REG_CTRL_OUTPUT_READY); |
1086 | omap_sham_read(dd, SHA_REG_CTRL); | 1086 | omap_sham_read(dd, SHA_REG_CTRL); |
1087 | 1087 | ||
1088 | if (!test_bit(FLAGS_BUSY, &dd->flags)) { | ||
1089 | dev_warn(dd->dev, "Interrupt when no active requests.\n"); | ||
1090 | return IRQ_HANDLED; | ||
1091 | } | ||
1092 | |||
1088 | set_bit(FLAGS_OUTPUT_READY, &dd->flags); | 1093 | set_bit(FLAGS_OUTPUT_READY, &dd->flags); |
1089 | tasklet_schedule(&dd->done_task); | 1094 | tasklet_schedule(&dd->done_task); |
1090 | 1095 | ||