diff options
author | Joel A Fernandes <joelagnel@ti.com> | 2013-02-26 11:04:32 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-03-10 04:46:44 -0400 |
commit | bbbaa37428abac025fe11b83933473888ddf6fc1 (patch) | |
tree | 88efc6b495eee0725c932e126564295d4e98076b /drivers/crypto/geode-aes.h | |
parent | e68af48251ffb2a8aad4664ea68e0363893dda26 (diff) |
crypto: omap-aes - Use pm_runtime_put instead of pm_runtime_put_sync in tasklet
After DMA is complete, the omap_aes_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
AES operation.
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
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/geode-aes.h')
0 files changed, 0 insertions, 0 deletions