mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
usb: dwc3: Fix error handling for core init
Fixing the sequence of events in dwc3_core_init() error exit path.
dwc3_core_exit() call is also removed from the error path since,
whatever it's doing is already done.
Fixes: c499ff7 usb: dwc3: core: re-factor init and exit paths
Cc: Felipe Balbi <[email protected]>
Cc: Greg KH <[email protected]>
Cc: Stable <[email protected]> # 4.8+
Signed-off-by: Vivek Gautam <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
This commit is contained in:
parent
a909d3e636
commit
9b9d7cdd0a
1 changed files with 2 additions and 3 deletions
|
|
@ -769,15 +769,14 @@ static int dwc3_core_init(struct dwc3 *dwc)
|
|||
return 0;
|
||||
|
||||
err4:
|
||||
phy_power_off(dwc->usb2_generic_phy);
|
||||
phy_power_off(dwc->usb3_generic_phy);
|
||||
|
||||
err3:
|
||||
phy_power_off(dwc->usb3_generic_phy);
|
||||
phy_power_off(dwc->usb2_generic_phy);
|
||||
|
||||
err2:
|
||||
usb_phy_set_suspend(dwc->usb2_phy, 1);
|
||||
usb_phy_set_suspend(dwc->usb3_phy, 1);
|
||||
dwc3_core_exit(dwc);
|
||||
|
||||
err1:
|
||||
usb_phy_shutdown(dwc->usb2_phy);
|
||||
|
|
|
|||
Loading…
Reference in a new issue