crypto: msm: Don't enable crypto clock in PM resume
If a PM suspend happens right after resume, crypto driver returns
-EBUSY, since reaper worker thread has not kicked in. The suspend
can only succeed after timer kicks in to disable crypto clock and
free bus.
The solution is as the following. Don't enable crypto
clock and allocate bus bandwidth when entering resume if
there is no outstanding crypto requests. The next crypto
operation will enable crypto clock then. Further more, this patch
shortens the reaper timer from 1 second to 200 ms.
Change-Id: I116cf1454b020ee2886c8bf6696b6411a5df83b6
Signed-off-by:
Zhen Kong <zkong@codeaurora.org>
Loading
Please register or sign in to comment