summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc2
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2015-09-21 12:16:11 +0200
committerFelipe Balbi <balbi@ti.com>2015-10-01 12:40:28 -0500
commit5ee2a003e8622d51e865ffa5547a5708e592a1a5 (patch)
tree351275fe7dfe600cd6ad9a7e80a66c6a52a8da69 /drivers/usb/dwc2
parent4112905f90510fce7c8ccb1cdc05253a25595734 (diff)
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: John Youn <johnyoun@synopsys.com> Acked-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc2')
-rw-r--r--drivers/usb/dwc2/platform.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
index a013ea9f2c9c..b920e438cd49 100644
--- a/drivers/usb/dwc2/platform.c
+++ b/drivers/usb/dwc2/platform.c
@@ -301,8 +301,6 @@ static int __maybe_unused dwc2_suspend(struct device *dev)
if (dwc2_is_device_mode(dwc2)) {
ret = dwc2_hsotg_suspend(dwc2);
} else {
- if (dwc2->lx_state == DWC2_L0)
- return 0;
phy_exit(dwc2->phy);
phy_power_off(dwc2->phy);