Commit 7557a57f authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by Felipe Balbi

usb: musb: dsps: init / shutdown the phy

If the init / shutdown function of the phy moves out of dsps into the
phy driver, then dsps needs to call the callbacks of the phy driver to
ensure that this happens.
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent fda71303
...@@ -428,6 +428,8 @@ static int dsps_musb_init(struct musb *musb) ...@@ -428,6 +428,8 @@ static int dsps_musb_init(struct musb *musb)
goto err0; goto err0;
} }
usb_phy_init(musb->xceiv);
setup_timer(&glue->timer[pdev->id], otg_timer, (unsigned long) musb); setup_timer(&glue->timer[pdev->id], otg_timer, (unsigned long) musb);
/* Reset the musb */ /* Reset the musb */
...@@ -463,6 +465,7 @@ static int dsps_musb_exit(struct musb *musb) ...@@ -463,6 +465,7 @@ static int dsps_musb_exit(struct musb *musb)
/* Shutdown the on-chip PHY and its PLL. */ /* Shutdown the on-chip PHY and its PLL. */
musb_dsps_phy_control(glue, pdev->id, 0); musb_dsps_phy_control(glue, pdev->id, 0);
usb_phy_shutdown(musb->xceiv);
/* NOP driver needs change if supporting dual instance */ /* NOP driver needs change if supporting dual instance */
usb_put_phy(musb->xceiv); usb_put_phy(musb->xceiv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment