Loading drivers/usb/dwc3/dwc3-msm.c +4 −0 Original line number Diff line number Diff line Loading @@ -4770,6 +4770,7 @@ static int dwc3_otg_start_host(struct dwc3_msm *mdwc, int on) pm_runtime_get_sync(mdwc->dev); dbg_event(0xFF, "StrtHost gync", atomic_read(&mdwc->dev->power.usage_count)); redriver_notify_connect(mdwc->ss_redriver_node); if (dwc->maximum_speed >= USB_SPEED_SUPER) { mdwc->ss_phy->flags |= PHY_HOST_MODE; usb_phy_notify_connect(mdwc->ss_phy, Loading Loading @@ -4866,6 +4867,7 @@ static int dwc3_otg_start_host(struct dwc3_msm *mdwc, int on) USB_SPEED_SUPER); mdwc->ss_phy->flags &= ~PHY_HOST_MODE; } redriver_notify_disconnect(mdwc->ss_redriver_node); mdwc->hs_phy->flags &= ~PHY_HOST_MODE; dwc3_host_exit(dwc); Loading Loading @@ -4924,6 +4926,7 @@ static int dwc3_otg_start_peripheral(struct dwc3_msm *mdwc, int on) __func__, dwc->gadget.name); dwc3_override_vbus_status(mdwc, true); redriver_notify_connect(mdwc->ss_redriver_node); usb_phy_notify_connect(mdwc->hs_phy, USB_SPEED_HIGH); usb_phy_notify_connect(mdwc->ss_phy, USB_SPEED_SUPER); Loading Loading @@ -4969,6 +4972,7 @@ static int dwc3_otg_start_peripheral(struct dwc3_msm *mdwc, int on) usb_gadget_vbus_disconnect(&dwc->gadget); usb_phy_notify_disconnect(mdwc->hs_phy, USB_SPEED_HIGH); usb_phy_notify_disconnect(mdwc->ss_phy, USB_SPEED_SUPER); redriver_notify_disconnect(mdwc->ss_redriver_node); dwc3_override_vbus_status(mdwc, false); dwc3_msm_write_reg_field(mdwc->base, DWC3_GUSB3PIPECTL(0), DWC3_GUSB3PIPECTL_SUSPHY, 0); Loading Loading
drivers/usb/dwc3/dwc3-msm.c +4 −0 Original line number Diff line number Diff line Loading @@ -4770,6 +4770,7 @@ static int dwc3_otg_start_host(struct dwc3_msm *mdwc, int on) pm_runtime_get_sync(mdwc->dev); dbg_event(0xFF, "StrtHost gync", atomic_read(&mdwc->dev->power.usage_count)); redriver_notify_connect(mdwc->ss_redriver_node); if (dwc->maximum_speed >= USB_SPEED_SUPER) { mdwc->ss_phy->flags |= PHY_HOST_MODE; usb_phy_notify_connect(mdwc->ss_phy, Loading Loading @@ -4866,6 +4867,7 @@ static int dwc3_otg_start_host(struct dwc3_msm *mdwc, int on) USB_SPEED_SUPER); mdwc->ss_phy->flags &= ~PHY_HOST_MODE; } redriver_notify_disconnect(mdwc->ss_redriver_node); mdwc->hs_phy->flags &= ~PHY_HOST_MODE; dwc3_host_exit(dwc); Loading Loading @@ -4924,6 +4926,7 @@ static int dwc3_otg_start_peripheral(struct dwc3_msm *mdwc, int on) __func__, dwc->gadget.name); dwc3_override_vbus_status(mdwc, true); redriver_notify_connect(mdwc->ss_redriver_node); usb_phy_notify_connect(mdwc->hs_phy, USB_SPEED_HIGH); usb_phy_notify_connect(mdwc->ss_phy, USB_SPEED_SUPER); Loading Loading @@ -4969,6 +4972,7 @@ static int dwc3_otg_start_peripheral(struct dwc3_msm *mdwc, int on) usb_gadget_vbus_disconnect(&dwc->gadget); usb_phy_notify_disconnect(mdwc->hs_phy, USB_SPEED_HIGH); usb_phy_notify_disconnect(mdwc->ss_phy, USB_SPEED_SUPER); redriver_notify_disconnect(mdwc->ss_redriver_node); dwc3_override_vbus_status(mdwc, false); dwc3_msm_write_reg_field(mdwc->base, DWC3_GUSB3PIPECTL(0), DWC3_GUSB3PIPECTL_SUSPHY, 0); Loading