Hi Felipe, On Thu, Oct 10, 2013 at 10:10:52AM -0500, Felipe Balbi wrote: > On Tue, Oct 08, 2013 at 10:28:29AM -0400, Alan Stern wrote: > > Felipe: > > > > I've got an Android device that uses the omap2430 musb driver. It's > > configured to go into device mode when it starts up, which I guess is > > the normal thing for Android devices to do. > > > > Can you explain how to switch the controller over to host mode (and > > back)? I tried writing "host" to the sysfs "mode" attribute, but all > > that happened was an immediate crash and reboot. > > grounding ID pin should be enough. If you're getting a crash when > switching through sysfs, it's likely a bug in that kernel. Can you share > the crash ? > I also have a question for host and device mode switch at DWC3 controller with on PCI bus. I saw omap glue get extcon cable state to identify ID pin, am I right? if (extcon_get_cable_state(edev, "USB-HOST") == true) dwc3_omap_set_mailbox(omap, OMAP_DWC3_ID_GROUND); But I don't find any similar identification on PCI glue. So how PCI glue execute this action? Thanks, Rui -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html