summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2013-11-25 14:01:22 +0400
committerFelipe Balbi <balbi@ti.com>2013-11-26 01:15:52 +0400
commit501fae512584e601d34945efccd35c5e5d759132 (patch)
tree3041edb5da107bfaa2d2c2ac457312a89e793fce /drivers/usb/dwc3
parent3088f1085d1c08f31f02db26796555a66cdf7ca1 (diff)
downloadlinux-501fae512584e601d34945efccd35c5e5d759132.tar.xz
usb: dwc3: power off usb phy in error path
usb phy was power'ed on but was never power'ed off in the error path. Fix it. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 4dd1f7e2edc8..a49217ae3533 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -569,6 +569,8 @@ err2:
dwc3_event_buffers_cleanup(dwc);
err1:
+ usb_phy_set_suspend(dwc->usb2_phy, 1);
+ usb_phy_set_suspend(dwc->usb3_phy, 1);
dwc3_core_exit(dwc);
err0: