Re: [PATCH] usb: add new usb gadget for ACM and mass storage

From: Michal Nazarewicz
Date: Fri Sep 16 2011 - 13:30:12 EST


On Fri, 16 Sep 2011 19:18:25 +0200, Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> wrote:

* Greg KH | 2011-09-09 11:43:54 [-0700]:

So we can expect more patches like this adding all of the possible
permutations of the different gadget devices?

If so, ick, I thought that the work that was done was to prevent this
from happening, oh well :(

Would it be possible to come up with a gadget-hub driver which can have
multiple gadget attached? This should get rid of this kind of gadget
drivers, right?

Yes, I keep thinking about such a thing for years now...

Instead of a âgadget HUBâ which would have to do a lot of translation of
headers and requests, I was thinking more of making USB composite functions
even more structured (ie. adding callback for per-gadget setup,
per-configuration set-up, etc.) and then creating a composite layer which
would be feed with a trivial structure describing which functions are to
be included in which configurations.

Like I've said before, that's almost what Android does, expect it does
not support many configurations.

--
Best regards, _ _
.o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o
..o | Computer Science, Michal "mina86" Nazarewicz (o o)
ooo +-----<email/xmpp: mnazarewicz@xxxxxxxxxx>-----ooO--(_)--Ooo--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/