Merge "usb: dwc3: dwc3-msm-core: Switch to UTMI clk during host teardown"
This commit is contained in:
commit
488e19cdcf
@ -7012,7 +7012,12 @@ static int dwc3_otg_start_host(struct dwc3_msm *mdwc, int on)
|
||||
/*
|
||||
* Performing phy disconnect before flush work to
|
||||
* address TypeC certification--TD 4.7.4 failure.
|
||||
* In order to avoid any controller start/halt
|
||||
* sequences, switch to the UTMI as the clk source
|
||||
* as the notify_disconnect() callback to the QMP
|
||||
* PHY will power down the PIPE clock.
|
||||
*/
|
||||
dwc3_msm_switch_utmi(mdwc, true);
|
||||
if (mdwc->ss_phy->flags & PHY_HOST_MODE) {
|
||||
usb_phy_notify_disconnect(mdwc->ss_phy,
|
||||
USB_SPEED_SUPER);
|
||||
@ -7025,6 +7030,7 @@ static int dwc3_otg_start_host(struct dwc3_msm *mdwc, int on)
|
||||
if (dwc->dr_mode == USB_DR_MODE_OTG)
|
||||
flush_work(&dwc->drd_work);
|
||||
|
||||
dwc3_msm_switch_utmi(mdwc, false);
|
||||
mdwc->hs_phy->flags &= ~PHY_HOST_MODE;
|
||||
usb_unregister_notify(&mdwc->host_nb);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user