On Fri, Aug 29, 2014 at 04:20:20PM -0500, Felipe Balbi wrote: > On Fri, Aug 29, 2014 at 05:08:13PM -0400, Alan Stern wrote: > > On Fri, 29 Aug 2014, Felipe Balbi wrote: > > > > > > First, change the API so that the disconnect API _does_ call > > > > usb_gadget_disconnect. > > > > > > that's not what the API was intended for, however. If we're going down > > > that path, we need another of telling the gadget driver to reset all its > > > buffers and teardown all its requests without disconnecting pullups, > > > maybe that's what ->reset() would be for. > > > > Just so. The disconnect handler should basically do the same thing as > > the reset handler, plus turn off the pullup. > > > > I still have some old patch files lying around, adding reset callback > > support to dummy-hcd, net2280, and net2272. Would you like me to post > > them? > > Please do :-) let's get all of that sorted out soon. > Felipe, would you agree with we have a reset API at usb_gadget_driver, and call usb_gadget_disconnet at .disconnect if the flag pullup_on_vbus is set? -- Best Regards, Peter Chen -- 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