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:
Jack Pham <jackp@codeaurora.org>
Loading
Please register or sign in to comment