Browse Source

usb: dwc3: invoke phy_resume after phy_init

usb_phy_set_suspend(phy, 0) is called before usb_phy_init. Fix it.

Reported-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Kishon Vijay Abraham I 11 years ago
parent
commit
3088f1085d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      drivers/usb/dwc3/core.c

+ 3 - 3
drivers/usb/dwc3/core.c

@@ -455,9 +455,6 @@ static int dwc3_probe(struct platform_device *pdev)
 	if (IS_ERR(regs))
 	if (IS_ERR(regs))
 		return PTR_ERR(regs);
 		return PTR_ERR(regs);
 
 
-	usb_phy_set_suspend(dwc->usb2_phy, 0);
-	usb_phy_set_suspend(dwc->usb3_phy, 0);
-
 	spin_lock_init(&dwc->lock);
 	spin_lock_init(&dwc->lock);
 	platform_set_drvdata(pdev, dwc);
 	platform_set_drvdata(pdev, dwc);
 
 
@@ -488,6 +485,9 @@ static int dwc3_probe(struct platform_device *pdev)
 		goto err0;
 		goto err0;
 	}
 	}
 
 
+	usb_phy_set_suspend(dwc->usb2_phy, 0);
+	usb_phy_set_suspend(dwc->usb3_phy, 0);
+
 	ret = dwc3_event_buffers_setup(dwc);
 	ret = dwc3_event_buffers_setup(dwc);
 	if (ret) {
 	if (ret) {
 		dev_err(dwc->dev, "failed to setup event buffers\n");
 		dev_err(dwc->dev, "failed to setup event buffers\n");