usb: musb: omap: add usb_phy_init in omap2430_musb_init
authorKishon Vijay Abraham I <kishon@ti.com>
Thu, 14 Mar 2013 06:23:58 +0000 (11:53 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:18:26 +0000 (11:18 +0200)
Some PHYs load too early (twl4030) making omap glue to miss cable connect events
if the board is booted with cable connected. So adding usb_phy_init in
omap2430_musb_init lets PHYs to report events once glue is ready.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/omap2430.c

index 018373d1c2c4f1f3d005a3eed946f437645b529b..ec460eaed842017716310b2f134d40f956161b2d 100644 (file)
@@ -391,6 +391,8 @@ static int omap2430_musb_init(struct musb *musb)
        if (glue->status != OMAP_MUSB_UNKNOWN)
                omap_musb_set_mailbox(glue);
 
+       usb_phy_init(musb->xceiv);
+
        pm_runtime_put_noidle(musb->controller);
        return 0;