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

Skip to content
Commit b2a2d2d7 authored by Jack Pham's avatar Jack Pham
Browse files

usb: dwc3-msm: Fix some cleanup during remove



Fix some additional cleanup/uninitializations in the
dwc3_msm_remove() callback. These were found to be
left on when attempting to dynamically unbind the
driver from the device, and prevented the system from
entering system sleep/XO shutdown/VDD minimization:

- runtime PM state was not in suspended state, so the
  parent device's active child count is left nonzero and
  is unable to enter runtime suspend
- hs_phy_irq wakeup was still enabled and blocks system sleep
- UTMI clock was left enabled which prevented XO shutdown
- HS PHY's host mode flag was still set; when dwc3 child
  is removed it calls set_suspend(0) but HS PHY driver does
  not disable regulators in host mode. This prevents VDD
  minimization.

CRs-Fixed: 657154
Change-Id: Id4b3619a232c650f9b47e4c536be0b1256bd070f
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent c82bee2d
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