Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 702aaf46 authored by Manu Gautam's avatar Manu Gautam
Browse files

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: default avatarManu Gautam <mgautam@codeaurora.org>
parent fab1b6d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment