diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2013-03-24 11:36:55 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-04-02 04:42:44 -0400 |
commit | b65ae0f1a7b98c370967cf161ee87011e3ecdd77 (patch) | |
tree | e31163ec0b2c697e6fa5d1eaf83d9559308e3c33 /drivers/usb/musb/musb_gadget.c | |
parent | 2c1fe89db1cfa9826c94e848c14dc68de0e2b0d5 (diff) |
usb: musb: gadget: use platform callback to enable vbus
On some platform configurations (like OMAP3+twl4030) it's the platform
code that enables VBUS, not OTG transceiver, so call vbus platform
callback instead, it will then call the transceiver if needed.
This fixes a use case where USB cable is plugged first and gadget
driver is loaded later after that.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_gadget.c')
-rw-r--r-- | drivers/usb/musb/musb_gadget.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index ff6ba3adf5fe..4be48651b5a8 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c | |||
@@ -1848,9 +1848,8 @@ static int musb_gadget_start(struct usb_gadget *g, | |||
1848 | goto err; | 1848 | goto err; |
1849 | } | 1849 | } |
1850 | 1850 | ||
1851 | if ((musb->xceiv->last_event == USB_EVENT_ID) | 1851 | if (musb->xceiv->last_event == USB_EVENT_ID) |
1852 | && otg->set_vbus) | 1852 | musb_platform_set_vbus(musb, 1); |
1853 | otg_set_vbus(otg, 1); | ||
1854 | 1853 | ||
1855 | hcd->self.uses_pio_for_control = 1; | 1854 | hcd->self.uses_pio_for_control = 1; |
1856 | 1855 | ||