> IIRC there was a problem involving timing. Suspending the root hub > might take too long for the OTG protocol. But the problem goes farther > than that; even when the root hub is suspended, somebody might still > try to access it via usbfs. > > Wouldn't it be better to unregister the host bus entirely when > switching to device mode? This seems more reliable than calling the > controller's suspend routine. The problem is how to do it quickly > enough. > I also think using usb_add(remove)_hcd is a good way for OTG switch, will try it at FSL internal code first, then mainline it for FSL i.mx platform. -- 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