On Wed, 13 Aug 2014, Peter Chen wrote: > > So here's what the UDC driver should do: If the pullup routine is called > > while Vbus is off, the driver should leave the D+ pullup disconnected but > > remember the call. Then when Vbus gets turned on, the driver should > > activate the pullup. > > > > In other words, the UDC driver should keep track of the pullup's > > "logical" state. When Vbus is off, the pullup must also be off. When > > Vbus is on, the pullup's physical state should be the same as the logical > > state. > > > > We had a similar discussion at last year, but Felipe " don't want to let UDC > drivers call usb_gadget_connect()/disconnect() directly." All right, let's see what Felipe says about my suggestion. Alan Stern -- 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