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

Skip to content
Commit d2bba2e7 authored by Azhar Shaikh's avatar Azhar Shaikh
Browse files

usb: dwc3: Do pm_runtime_disable after removing children



When trying to remove the child, device core is trying to resume one last
time before unloading. All parents should be in active state before
resuming the child, but since dwc3_msm may be runtime suspended, removal
of child device could result in unclocked register access.
Hence do a pm_runtime_get_sync prior to removing children to ensure parent
is in active state. However sometimes pm_runtime_get_sync fails in case of
system suspend. In this case turn on the clocks manually.

CRs-fixed: 682513
Change-Id: I3b25a8d96a2efedd0235a53683fcb4d8659bc54f
Signed-off-by: default avatarAzhar Shaikh <azhars@codeaurora.org>
parent ff1ff8e0
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