Re: composite gadget support

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Mon, 29 Oct 2007, Ramirez-Ortiz, Jorge wrote:

> Thanks David
> What I am trying to do is to combine two drivers into a single one (a
> usb2print propietary driver and the g_ether driver). 
> Instead of writing a composite driver, would it be possible to write
> just two configurations? To be honest I don't think I understand the
> distinction between functions and configurations.

Configurations are mutually exclusive; only one configuration can be
installed at any time.  A configuration can contain multiple
interfaces, and all of those interfaces are available whenever the
configuration is installed.

So if you want your device to act as a printer and ethernet interface 
simultaneously then you have to use multiple interfaces (i.e., make it 
a composite gadget).  If you want only one function or the other to be 
available at any time, then you can use multiple configs.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.