usb: phy: twl4030: fix cold plug on OMAP3
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 15 Mar 2013 13:28:52 +0000 (18:58 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:18:27 +0000 (11:18 +0200)
commit817e5f33d0c12f24bdfebe88c96ca2e968756da4
treec520603f5fe104133421295940457ab2ff6c0a57
parent9166902c435b4847c1987188294407b24e76d9e6
usb: phy: twl4030: fix cold plug on OMAP3

Having twl4030_usb_phy_init() (detects if a cable is connected before
twl4030 is probed) in twl4030 probe makes cable connect events to be
missed by musb glue, since it gets loaded after twl4030. Having
twl4030_usb_phy_init as a usb_phy ops lets twl4030_usb_phy_init to be
called when glue is ready.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Tested-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-twl4030-usb.c