Wessler, Siegfried wrote:

When probing after the first attachment of the gadget to usb, my device
driver offers an interface with two identical alternate settings: Both have
only 1 bulk in and 1 bulk out endpoint (I will not mention control ep). Now
the application on the host side decides, what to do with the gadget and how
to use bandwidth. ...

Nothing special then -- just standard USB device model.



To get the reconfiguration done throughout the whole chain (root hub and
cascaded external hubs) I think it might be helpful, if we have a
usb_set_interface the way we could set everything to index=0 and then get
the devices interface from start on, without interrupting the other devices
connected to external hubs. That's why we cannot use a bus_reset, which
would reset all gadgets connected.

That is, you want to use usb_set_interface (dev, ifnum, altsetting)? It's been there forever. (Though in 2.5 the API should really change to take an interface, not a dev/ifnum pair.)

The call already exists, though it maybe shouldn't have that quirk
logic in it.  Device drivers should handle spec non-conformance,
since not all devices are non-conformant in the same ways ... ;)


I know that our partner managed a way to let this work out fine (yes it
works!), but we still have the problem that the external hubs don't mind the
latter reconfiguration. We did a work around, but that doesn't fit every
situation possible. I guess a "true" reconfiguration via
usb_set_configuration would help.

Eventually, we'll have it -- you saw a patch of mine to handle it a while back, that basically worked. But what it didn't do was update the users of the device reset logic ... which I'm basically thinking should morph into (a) "light" reset without hub interactions, (b) "hard" reset that needs to synchronize with khubd and so on. The current API call should likely be (a). I think we know that (b) has never quite worked, but maybe usb-storage developers know better.

- Dave





-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to