omap-sham: Use pm_runtime_put instead of pm_runtime_put_sync
PATCH 1/2 omap-sham: Use pm_runtime_put instead of pm_runtime_put_sync
From: Joel A Fernandes <[email protected]>
Not doing so could cause sleep in interrupt context resulting in a kernel panic.
Tested on an AM33xx SoC device (beaglebone board).
To reproduce the problem, I used the tcrypt kernel module as:
modprobe tcrypt sec=2 mode=403
--- drivers/crypto/omap-sham.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/crypto/omap-sham.c +1 -1
@@ -923,7 +923,7 @@ static void omap_sham_finish_req(struct ahash_request *req, int err) dd->flags &= ~(BIT (FLAGS_BUSY ) |BIT (FLAGS_FINAL ) |BIT (FLAGS_CPU ) |BIT (FLAGS_DMA_READY ) |BIT (FLAGS_OUTPUT_READY )); -pm_runtime_put_sync (dd->dev); +pm_runtime_put (dd->dev);if (req->base.complete) req->base.complete (&req->base, err);
Signature · 1 line
1.7.4.1
PATCH 2/2 omap-aes: Use pm_runtime_put instead of pm_runtime_put_sync
From: Joel A Fernandes <[email protected]>
Not doing so could cause sleep in interrupt context resulting in a kernel panic.
Tested on an AM33xx SoC device (beaglebone board).
To reproduce the problem, I used the tcrypt kernel module as:
modprobe tcrypt sec=2 mode=500
--- drivers/crypto/omap-aes.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/crypto/omap-aes.c +1 -1
@@ -636,7 +636,7 @@ static void omap_aes_finish_req(struct omap_aes_dev *dd, int err)pr_debug ("err: %d\n" , err); -pm_runtime_put_sync (dd->dev); +pm_runtime_put (dd->dev); dd->flags &= ~FLAGS_BUSY ; req->base.complete (&req->base, err);
Signature · 1 line
1.7.4.1
Quoted 1 line · Joel A Fernandes
From: Joel A Fernandes <[email protected]>
Hi Joel.
Quoted 20 lines
Not doing so could cause sleep in interrupt context resulting in a kernel panic.
Tested on an AM33xx SoC device (beaglebone board).
To reproduce the problem, I used the tcrypt kernel module as:
modprobe tcrypt sec=2 mode=403Signed-off-by Joel A Fernandes <[email protected]>Cc Herbert Xu <[email protected]>Cc David S. Miller <[email protected]>Cc Mark A. Greer <[email protected]>--- drivers/crypto/omap-sham.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/crypto/omap-sham.c +0
-0
drivers/crypto/omap-sham.c static void omap_sham_finish_req(struct ahash_request *req, int err) · line 929
Quoted 8 lines
drivers/crypto/omap-sham.c +1
-1@@ -923,7 +923,7 @@ static void omap_sham_finish_req(struct ahash_request *req, int err) dd->flags &= ~(BIT (FLAGS_BUSY ) |BIT (FLAGS_FINAL ) |BIT (FLAGS_CPU ) |BIT (FLAGS_DMA_READY ) |BIT (FLAGS_OUTPUT_READY )); -pm_runtime_put_sync (dd->dev); +pm_runtime_put (dd->dev);if (req->base.complete) req->base.complete (&req->base, err);
I like your patch but I think it could use a better description.
Please put in a good description of the symptom(s) you saw, the root cause, and what you did to fix it (and why it fixes it).
Ditto for the omap-aes patch.
Mark
--