Skip to content

Commit

Permalink
usb: musb: dsps: Call usb_phy(_shutdown/_init) during musb_platform_r…
Browse files Browse the repository at this point in the history
…eset()

For DSPS platform usb_phy_vbus(_off/_on) are NOPs.
So during musb_platform_reset() call usb_phy(_shutdown/_init)

Signed-off-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
George Cherian authored and Felipe Balbi committed Jun 30, 2014
1 parent 58b949e commit 5670017
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/usb/musb/musb_dsps.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,11 @@ static void dsps_musb_reset(struct musb *musb)
const struct dsps_musb_wrapper *wrp = glue->wrp;

dsps_writel(musb->ctrl_base, wrp->control, (1 << wrp->reset));
udelay(100);
usleep_range(100, 200);
usb_phy_shutdown(musb->xceiv);
usleep_range(100, 200);
usb_phy_init(musb->xceiv);

}

static struct musb_platform_ops dsps_ops = {
Expand Down

0 comments on commit 5670017

Please sign in to comment.