Re: composite gadget support

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

> Um...the devices you are referring to when using /sys/bus/sub are the
> host controllers, am I right?

You are wrong.  The device under /sys/bus/usb/ is the USB device (or
gadget) whose configuration you want to change.  (However the
/sys/bus/usb/ directory itself is located on the host, not the gadget,
if that's what you mean.)

> So if I am understanding all of this correctly, the host controller
> would be telling the gadget what interface/function it needs....

More accurately, the host tells the gadget which configuration to 
install, by sending it a Set-Configuration request.

> Somehow  I was expecting the gadget (in this case a printer with a nice
> GUI) to be able to present different interfaces to the hosts depending
> on a user selection from within  

Within what?

>(so the gadget would be chosing what
> functionality to present at a given moment in time)....it seemed
> reasonable...

The USB specification states that these choices are made by the host,
not by the peripheral.

> Please could you confirm that I am in the 'right' track?

It's kind of hard to say, but I suspect you aren't.

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.