Re: generate one module from multiple object files (was: Re: [PATCH 2/2] usb: gadget: convert all users to the new udc)

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

 



On Tue, 14 Jun 2011 09:32:20 +0200, Felipe Balbi <balbi@xxxxxx> wrote:
such a framework won't work for Certification. The original
composite framework that I implemented with the guidance of
Dave was doing exactly that. Each function driver was a module
of its own and you built composite gadgets by loading the
different drivers.

That was until Dave explained to me why it wouldn't fly. You
can't have completely dynamic USB peripherals. If you go to
certification with something like that, you will be denied
certification as your device can change how it appears to
the bus at any time.

On Tue, Jun 14, 2011 at 09:51:03AM +0200, Michal Nazarewicz wrote:
Not if changing configuration meant disconnect/connect cycle.
I think that's what happens in Android if you enable/disable
ADB.  Of course, Android's composite is pretty much linked
together.

On Tue, 14 Jun 2011 10:01:31 +0200, Felipe Balbi <balbi@xxxxxx> wrote:
heh, it's just that you still have the possibility of a user turn on the
device with the USB cable already attached, right ? Then this whole idea
falls appart ;-)

You can do a pull-up or something.  Also, if you do rmmod g_foo followed
by modprobe g_bar you are switching gadgets so users can already change
gadget while USB cable is attached.

Still, I think it's quite a bit of coding so I don't want to propose
something and than walk away and recently I had less time and hardware
to work on Linux USB gadgets then I would hope to have.

--
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-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