Skip to content

Commit

Permalink
usb: dwc3: invoke phy_resume after phy_init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kishon Vijay Abraham I authored and Felipe Balbi committed Nov 25, 2013
1 parent 2cf93be commit 3088f10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/usb/dwc3/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,6 @@ static int dwc3_probe(struct platform_device *pdev)
if (IS_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);
platform_set_drvdata(pdev, dwc);

Expand Down Expand Up @@ -488,6 +485,9 @@ static int dwc3_probe(struct platform_device *pdev)
goto err0;
}

usb_phy_set_suspend(dwc->usb2_phy, 0);
usb_phy_set_suspend(dwc->usb3_phy, 0);

ret = dwc3_event_buffers_setup(dwc);
if (ret) {
dev_err(dwc->dev, "failed to setup event buffers\n");
Expand Down

0 comments on commit 3088f10

Please sign in to comment.