Hi, On Tue, Jun 14, 2011 at 10:27:35AM +0200, Michal Nazarewicz wrote: > On Tue, 14 Jun 2011 10:14:57 +0200, Felipe Balbi <balbi@xxxxxx> wrote: > >how do you know user has finished loading all the functions s/he wants ? > >:-) > > That would have to be checked when user wants to change the gadget. > How gadgets would be changed is another matter. It could simply be > a matter of loading a module or even done by writing a text > description to sysfs or somewhere. > > Eg. a module would do something like: > > mass_storage = usb_function_get("mass-storage"); > rndis = usb_function_get("rndis") > ether = usb_function_get("ether") this is quite nasty :-p soon enough we will have USB descriptors in XML haha :-p > In my short encounter with Android's composite gadget, I noticed that > it has several configurations and makes it possible to enable or disable > individual functions. Whenever function is enabled or disabled the > framework checks which configuration best matches current set of > enabled functions and (if its not the current configuration) switches > to it. (And of course, I mean configuration not in USB sense.) To me, this sounds like a shortcut for a well written host-side driver. Oh well, we are spending effort discussing something which won't happen, better stop :-p -- balbi
Attachment:
signature.asc
Description: Digital signature