Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac447b26 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: dwc3-msm: Allow Super speed phy suspend in P3 link state



In Super speed mode DWC3_GUSB3PIPECTL_SUSPHY bit is not set.
This does not allow super speed phy to enter suspend upon
usb bus suspend when link enters in P3 state. As a result no
IN_P3 power event irq is generated and controller suspend is
aborted. Hence set this bit for SS phy to enter suspend when
link goes to P3 state.

CRs-Fixed: 783610
Change-Id: I818c0740482e53d2b9b4724b46a4bc4677f7296c
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 4df29b7c
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -3131,8 +3131,10 @@ 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 */
	/*
	 * 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];