diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2013-07-22 14:09:52 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-07-29 06:58:14 -0400 |
commit | 7557a57f5e649c99239975529e2b30dc4990c548 (patch) | |
tree | eb748c5062c17152219f63bd772d1787bd473fd5 | |
parent | fda7130354271b55eea50a4f58ea8540c9971295 (diff) |
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: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/musb/musb_dsps.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 5233804d66b1..603ea747d882 100644 --- a/drivers/usb/musb/musb_dsps.c +++ b/drivers/usb/musb/musb_dsps.c | |||
@@ -428,6 +428,8 @@ static int dsps_musb_init(struct musb *musb) | |||
428 | goto err0; | 428 | goto err0; |
429 | } | 429 | } |
430 | 430 | ||
431 | usb_phy_init(musb->xceiv); | ||
432 | |||
431 | setup_timer(&glue->timer[pdev->id], otg_timer, (unsigned long) musb); | 433 | setup_timer(&glue->timer[pdev->id], otg_timer, (unsigned long) musb); |
432 | 434 | ||
433 | /* Reset the musb */ | 435 | /* Reset the musb */ |
@@ -463,6 +465,7 @@ static int dsps_musb_exit(struct musb *musb) | |||
463 | 465 | ||
464 | /* Shutdown the on-chip PHY and its PLL. */ | 466 | /* Shutdown the on-chip PHY and its PLL. */ |
465 | musb_dsps_phy_control(glue, pdev->id, 0); | 467 | musb_dsps_phy_control(glue, pdev->id, 0); |
468 | usb_phy_shutdown(musb->xceiv); | ||
466 | 469 | ||
467 | /* NOP driver needs change if supporting dual instance */ | 470 | /* NOP driver needs change if supporting dual instance */ |
468 | usb_put_phy(musb->xceiv); | 471 | usb_put_phy(musb->xceiv); |