]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: OMAP3xxx: Fix device detection in otg & host mode
authorHema HK <hemahk@ti.com>
Mon, 28 Feb 2011 09:35:29 +0000 (15:05 +0530)
committerFelipe Balbi <balbi@ti.com>
Tue, 1 Mar 2011 10:23:03 +0000 (12:23 +0200)
commit0d8f8edd2c3a7acb2202f1982ca8c18ee62cd49a
treeb5be423069598a12f2097f87cb55fb8a713c8569
parente1f264a0bc512bb4afa39bd58340f8aef84202fe
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>
drivers/usb/musb/omap2430.c