USB: ci13xxx_udc: Avoid unclocked access if pm_runtime_get fails
If remote wakeup request is received during system resume where
resume_early is still processing, pm_runtime_get_sync returns
-EACCES error as runtime_pm for a device is disabled between
late_suspend and early_resume.
This results in runtime_get_sync failing to bring hardware out
of low power mode state followed by unclocked access of registers
as part of remote wakeup.
Fix this by retrying runtime_resume if pm_runtime_get_sync fails
with -EACCESS.
Change-Id: I73c0d0da57e40392d00793a5b3814dd04105ef63
Signed-off-by:
Manu Gautam <mgautam@codeaurora.org>
Loading
Please register or sign in to comment