mbox series

[RFC,0/4] USB: gadget: Create a bus for gadgets

Message ID YjeEbHL8ITkW692W@rowland.harvard.edu (mailing list archive)
Headers show
Series USB: gadget: Create a bus for gadgets | expand

Message

Alan Stern March 20, 2022, 7:45 p.m. UTC
Everyone:

The following series of patches implements Greg's suggestion that 
gadgets should be registered on some sort of bus.  It turns out that the 
best way to do this is to create a new "gadget" bus, with specialized 
matching and probing routines, rather than using an existing bus.

Patches 1-3 are simple preparations for the big change.  They stand on 
their own, make useful little changes, and could be merged by themselves
without committing to adding the "gadget" bus.  Patch 4 is main one.

I'm posting this series for feedback from the Gadget/UDC maintainer and 
others.  If everything works out okay, the patches can be submitted for 
real once the upcoming merge window closes.

Alan Stern

Comments

Greg Kroah-Hartman April 22, 2022, 1:30 p.m. UTC | #1
On Sun, Mar 20, 2022 at 03:45:48PM -0400, Alan Stern wrote:
> Everyone:
> 
> The following series of patches implements Greg's suggestion that 
> gadgets should be registered on some sort of bus.  It turns out that the 
> best way to do this is to create a new "gadget" bus, with specialized 
> matching and probing routines, rather than using an existing bus.
> 
> Patches 1-3 are simple preparations for the big change.  They stand on 
> their own, make useful little changes, and could be merged by themselves
> without committing to adding the "gadget" bus.  Patch 4 is main one.
> 
> I'm posting this series for feedback from the Gadget/UDC maintainer and 
> others.  If everything works out okay, the patches can be submitted for 
> real once the upcoming merge window closes.

At first glance, this looks good to me, many thanks for working on this!

greg k-h
Alan Stern April 24, 2022, 1:40 a.m. UTC | #2
On Fri, Apr 22, 2022 at 03:30:06PM +0200, Greg KH wrote:
> On Sun, Mar 20, 2022 at 03:45:48PM -0400, Alan Stern wrote:
> > Everyone:
> > 
> > The following series of patches implements Greg's suggestion that 
> > gadgets should be registered on some sort of bus.  It turns out that the 
> > best way to do this is to create a new "gadget" bus, with specialized 
> > matching and probing routines, rather than using an existing bus.
> > 
> > Patches 1-3 are simple preparations for the big change.  They stand on 
> > their own, make useful little changes, and could be merged by themselves
> > without committing to adding the "gadget" bus.  Patch 4 is main one.
> > 
> > I'm posting this series for feedback from the Gadget/UDC maintainer and 
> > others.  If everything works out okay, the patches can be submitted for 
> > real once the upcoming merge window closes.
> 
> At first glance, this looks good to me, many thanks for working on this!

Okay, patches 1-4 have now been submitted officially.

Alan Stern