aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorHema HK <hemahk@ti.com>2011-02-28 04:35:29 -0500
committerFelipe Balbi <balbi@ti.com>2011-03-01 05:23:03 -0500
commit70045c57f31f998a7206baa81167c7bc9f452cef (patch)
treeb5be423069598a12f2097f87cb55fb8a713c8569 /drivers/usb/musb
parentfb91cde49c327ff957c55d91805bc6abda59b311 (diff)
usb: musb: OMAP3xxx: Fix device detection in otg & host mode
In OMAP3xxx with OTG mode or host only mode, When the device is inserted after the gadget driver loading the enumeration was not through. This is because the mentor controller will start sensing the ID PIN only after setting the session bit. So after ID-GND, need to set the session bit for mentor to get it configured as A device. This is a fix to set the session bit again in ID_GND notification handler. Tested with OMAP3630Zoom3 platform. Signed-off-by: Hema HK <hemahk@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/omap2430.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c
index 47267987077d..f5d4f368be9e 100644
--- a/drivers/usb/musb/omap2430.c
+++ b/drivers/usb/musb/omap2430.c
@@ -246,19 +246,13 @@ static int musb_otg_notifications(struct notifier_block *nb,
246 if (musb->gadget_driver) { 246 if (musb->gadget_driver) {
247 pm_runtime_get_sync(musb->controller); 247 pm_runtime_get_sync(musb->controller);
248 otg_init(musb->xceiv); 248 otg_init(musb->xceiv);
249 249 omap2430_musb_set_vbus(musb, 1);
250 if (data->interface_type ==
251 MUSB_INTERFACE_UTMI)
252 omap2430_musb_set_vbus(musb, 1);
253
254 } 250 }
255#endif 251#endif
256 } else { 252 } else {
257 pm_runtime_get_sync(musb->controller); 253 pm_runtime_get_sync(musb->controller);
258 otg_init(musb->xceiv); 254 otg_init(musb->xceiv);
259 if (data->interface_type == 255 omap2430_musb_set_vbus(musb, 1);
260 MUSB_INTERFACE_UTMI)
261 omap2430_musb_set_vbus(musb, 1);
262 } 256 }
263 break; 257 break;
264 258