mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 20:04:01 +00:00
Merge "usb: dwc3-msm: Allow Super speed phy suspend in P3 link state"
This commit is contained in:
commit
248dd47d35
1 changed files with 5 additions and 3 deletions
|
@ -3131,9 +3131,11 @@ static void dwc3_gadget_conndone_interrupt(struct dwc3 *dwc)
|
|||
dwc3_writel(dwc->regs, DWC3_DCTL, reg);
|
||||
}
|
||||
|
||||
if (dwc->gadget.speed != USB_SPEED_SUPER)
|
||||
/* Suspend unneeded PHY */
|
||||
dwc3_gadget_usb3_phy_suspend(dwc, true);
|
||||
/*
|
||||
* In HS mode this allows SS phy suspend. In SS mode this allows ss phy
|
||||
* suspend in P3 state and generates IN_P3 power event irq.
|
||||
*/
|
||||
dwc3_gadget_usb3_phy_suspend(dwc, true);
|
||||
|
||||
dep = dwc->eps[0];
|
||||
ret = __dwc3_gadget_ep_enable(dep, &dwc3_gadget_ep0_desc, NULL, true);
|
||||
|
|
Loading…
Reference in a new issue