Skip to contentSkip to conversation

usb: musb: OMAP3xxx: Fix device detection in otg & host mode

PATCH Applied Hema HK 2 participants 2 messages Feb 28, 2011 – Mar 1, 2011 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

Hema HK

author
#0 lore raw

PATCH 1/1 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.

Cc Felipe Balbi <[email protected]>
---
 drivers/usb/musb/omap2430.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
drivers/usb/musb/omap2430.c +0 -4
index 4726798..f5d4f36 100644
@@ -246,19 +246,13 @@ static int musb_otg_notifications(struct notifier_block *nb,
 			if (musb->gadget_driver) {
 				pm_runtime_get_sync(musb->controller);
 				otg_init(musb->xceiv);
-
-				if (data->interface_type ==
-						MUSB_INTERFACE_UTMI)
-					omap2430_musb_set_vbus(musb, 1);

A message that is not in the archive (sent off-list or not yet received): 1298885729-7938-1-git-send-email-hemahk-l0cyMroinI0@public.gmane.org

Applied
#2 lore raw
Quoted 7 lines · Hema HK

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.

Quoted 5 lines

This is a fix to set the session bit again in ID_GND notification handler. Tested with OMAP3630Zoom3 platform.

Cc Felipe Balbi <[email protected]>

applied, thanks

Signature · 5 lines
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html