From: Dmitry Kasatkin <dmitry.s.kasatkin@gmail.com>
To: herbert@gondor.hengli.com.au
Cc: linux-crypto@vger.kernel.org, linux-omap@vger.kernel.org,
Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
Subject: [PATCH 11/11] omap-sham: do not schedule tasklet if there is no active requests
Date: Thu, 2 Jun 2011 21:10:13 +0300 [thread overview]
Message-ID: <0cc70c890c54199d93820e603ddd38fd47d7af09.1306926921.git.dmitry.kasatkin@gmail.com> (raw)
In-Reply-To: <cover.1306926921.git.dmitry.kasatkin@gmail.com>
In-Reply-To: <cover.1306926921.git.dmitry.kasatkin@gmail.com>
From: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
---
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);
--
1.7.4.1
next prev parent reply other threads:[~2011-06-02 18:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-02 18:10 [PATCH 00/11] crypto: omap-sham driver fixes Dmitry Kasatkin
2011-06-02 18:10 ` [PATCH 01/11] omap-sham: remove extra reference Dmitry Kasatkin
2011-06-02 18:10 ` [PATCH 02/11] omap-sham: remove unused code Dmitry Kasatkin
2011-06-02 18:10 ` [PATCH 03/11] omap-sham: replace flags bit mask with bit number Dmitry Kasatkin
2011-06-02 18:10 ` [PATCH 04/11] omap-sham: replace flags operation with atomic bit operations Dmitry Kasatkin
2011-06-02 18:10 ` [PATCH 05/11] omap-sham: move some flags to device context Dmitry Kasatkin
2011-06-02 18:10 ` [PATCH 06/11] omap-sham: remove unnecessary local variable Dmitry Kasatkin
2011-06-02 18:10 ` [PATCH 07/11] omap-sham: remove dedicated queue handling tasklet Dmitry Kasatkin
2011-06-02 18:10 ` [PATCH 08/11] omap-sham: irq and dma handling changes Dmitry Kasatkin
2011-06-02 18:10 ` [PATCH 09/11] omap-sham: irq handler must not clear error code Dmitry Kasatkin
2011-06-02 18:10 ` [PATCH 10/11] omap-sham: clear device flags when finishing request Dmitry Kasatkin
2011-06-02 18:10 ` Dmitry Kasatkin [this message]
2011-06-08 13:08 ` [PATCH 00/11] crypto: omap-sham driver fixes Herbert Xu
2011-06-08 19:36 ` Dmitry Kasatkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0cc70c890c54199d93820e603ddd38fd47d7af09.1306926921.git.dmitry.kasatkin@gmail.com \
--to=dmitry.s.kasatkin@gmail.com \
--cc=dmitry.kasatkin@nokia.com \
--cc=herbert@gondor.hengli.com.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).