]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: omap-aes - Use pm_runtime_put instead of pm_runtime_put_sync in tasklet
authorJoel A Fernandes <joelagnel@ti.com>
Tue, 26 Feb 2013 16:04:32 +0000 (10:04 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 10 Mar 2013 08:46:44 +0000 (16:46 +0800)
commita6a6ff80604797d1a605374f68bddb232bf988b5
tree88efc6b495eee0725c932e126564295d4e98076b
parent323304438e2c51b791a469f4ad5ae2287e0f2849
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>
drivers/crypto/omap-aes.c