summaryrefslogtreecommitdiff
path: root/drivers/crypto/omap-aes.c
diff options
context:
space:
mode:
authorJoel A Fernandes <joelagnel@ti.com>2013-02-26 10:04:31 -0600
committerHerbert Xu <herbert@gondor.apana.org.au>2013-03-10 16:46:44 +0800
commite68af48251ffb2a8aad4664ea68e0363893dda26 (patch)
treebfdf3f4d8492de085a6923f7f6d39a097d7bdff7 /drivers/crypto/omap-aes.c
parentfb1dd794802022f4413d36e47bd40f8c7bacd456 (diff)
downloadlinux-e68af48251ffb2a8aad4664ea68e0363893dda26.tar.gz
linux-e68af48251ffb2a8aad4664ea68e0363893dda26.tar.xz
crypto: omap-sham - Use pm_runtime_put instead of pm_runtime_put_sync in tasklet
After DMA is complete, the omap_sham_finish_req function is called as a part of the done_task tasklet. During this its atomic and any calls to pm functions should not assume they wont sleep. The patch replaces a call to pm_runtime_put_sync (which can sleep) with pm_runtime_put thus fixing a kernel panic observed on AM33xx SoC during SHA operation. Tested on an AM33xx SoC device (beaglebone board). To reproduce the problem, used the tcrypt kernel module as: modprobe tcrypt sec=2 mode=403 Signed-off-by: Joel A Fernandes <joelagnel@ti.com> Cc: David S. Miller <davem@davemloft.net> Acked-by: Mark A. Greer <mgreer@animalcreek.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/omap-aes.c')
0 files changed, 0 insertions, 0 deletions