From: Joel A Fernandes Date: Tue, 26 Feb 2013 16:04:32 +0000 (-0600) Subject: crypto: omap-aes - Use pm_runtime_put instead of pm_runtime_put_sync in tasklet X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~57^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbbaa37428abac025fe11b83933473888ddf6fc1;p=pandora-kernel.git 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 Cc: David S. Miller Acked-by: Mark A. Greer Signed-off-by: Herbert Xu --- Reading git-diff-tree failed