On Fri, Jan 12, 2018 at 05:50:03PM +1100, Benjamin Herrenschmidt wrote: > Some UDC may want to allocate endpoints dynamically, either because > the HW supports an arbitrary large number or because (like the Aspeed > BMC SoCs), the pool of HW endpoints is shared between multiple gadgets. > > The allocation side can be done rather easily using the existing > match_ep() UDC hook. > > However we have no good place to "free" them. > > This implements a "simple" variant of this, which calls an EP dispose > callback on all EPs associated with a gadget when the composite device > gets unbound. > > This is required by my upcoming Aspeed vHub driver. > > Signed-off-by: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> > --- > drivers/usb/gadget/composite.c | 8 ++++++++ > include/linux/usb/gadget.h | 1 + > 2 files changed, 9 insertions(+) Any reason you aren't sending these to the maintainer of the usb gadget subsystem? get_maintainer.pl is your friend :) thanks, greg k-h -- 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