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

Commit 5ee2a003 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Felipe Balbi
Browse files

usb: dwc2: fix unbalanced phy control



Even when DWC2 is in (internal) suspended state, it should disable PHY
in suspend and then enable it in resume. This patch fixes unbalanced PHY
control sequence.

Tested-by: default avatarJohn Youn <johnyoun@synopsys.com>
Acked-by: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 4112905f
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -301,8 +301,6 @@ static int __maybe_unused dwc2_suspend(struct device *dev)
	if (dwc2_is_device_mode(dwc2)) {
	if (dwc2_is_device_mode(dwc2)) {
		ret = dwc2_hsotg_suspend(dwc2);
		ret = dwc2_hsotg_suspend(dwc2);
	} else {
	} else {
		if (dwc2->lx_state == DWC2_L0)
			return 0;
		phy_exit(dwc2->phy);
		phy_exit(dwc2->phy);
		phy_power_off(dwc2->phy);
		phy_power_off(dwc2->phy);