Skip to content

Commit b0a3d89

Browse files
lokeshvutlaherbertx
authored andcommitted
crypto: omap-sham - Use pm_runtime_irq_safe()
omap_sham_handle_queue() can be called as part of done_task tasklet. During this its atomic and any calls to pm functions cannot sleep. But there is a call to pm_runtime_get_sync() (which can sleep) in omap_sham_handle_queue(), because of which the following appears: " [ 116.169969] BUG: scheduling while atomic: kworker/0:2/2676/0x00000100" Add pm_runtime_irq_safe() to avoid this. Signed-off-by: Lokesh Vutla <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 555fa17 commit b0a3d89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/crypto/omap-sham.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,6 +1945,7 @@ static int omap_sham_probe(struct platform_device *pdev)
19451945
dd->flags |= dd->pdata->flags;
19461946

19471947
pm_runtime_enable(dev);
1948+
pm_runtime_irq_safe(dev);
19481949
pm_runtime_get_sync(dev);
19491950
rev = omap_sham_read(dd, SHA_REG_REV(dd));
19501951
pm_runtime_put_sync(&pdev->dev);

0 commit comments

Comments
 (0)