Re: [RFC PATCH 0/7] usb: gadget: add reset API at usb_gadget_driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux