On Wed, 15 Nov 2006, Romain Liévin wrote:

> About behaviour, I was talking about the fact that Windows and Linux does
> not follow the same init/de-init sequence. I have taken a look at my WDM
> driver code. Sequence is the following:
> 1) open:
> - set device descriptor
> - set configuration descriptor
> - set interface descriptor

I assume you mean "get" instead of "set".  It's not possible to set any of 
these descriptors.

> 2) close: set configuration to NULL (if NULL, the device will be set into
> its unconfigured state).
> 
> Because I'm curious, is Windows following USB standard by doing that?

Certainly.  The USB standard doesn't say very much about what the host 
operating system should do, which means it can do whatever it wants.

You know, if you want you can always change your copy of the USB core.  
The Set-Interface call which crashes your Titanium can be found in the 
source file drivers/usb/core/driver.c, in usb_unbind_interface().  Just 
comment out the call to usb_set_interface().

Alan Stern


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to