That test has always been buggy -- better to just remove it. For that matter, usb_interface_claimed() calls should all vanish ... it's better to fail if claiming the interface fails (one step, not two). Care to try an updated patch?
Like this one? It works. I'm a bit wondering, however, how comes usb_interface_claimed() returns true, and the check in usb_driver_claim_interface() passes?
Pretty much like that one, but not leaking the other urbs ... :)
There are two interfaces involved, for "control" and "data". "Control" is being probed; and "data" is what gets claimed.
For more info, you could see how "usbnet" handles CDC Ethernet; see how it parses the CDC Union descriptor (which is what the FIXME refers to). Or read the CDC spec, from www.usb.org as PDF.
- Dave
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
