Alan Stern wrote:
usbnet 2-3:1.0: usb_probe_interface
usbnet 2-3:1.0: usb_probe_interface - got id
usbnet 2-3:1.0: CDC descriptors on config
usb_control_msg2: result = 26
usbnet: probe of 2-3:1.0 failed with error -22


There's only one place that error can be coming from; it's where the CDC driver tries to retrieve the Ethernet (MAC) address from the device. That's the get_ethernet_addr() routine in usbnet.c.

Odd ... the descriptor length should be exactly 26 bytes: length and type (2 bytes), plus 12 unicode characters (2 bytes each) representing the 6 bytes of Ethernet address encoded as 2 ASCII characters each.


A couple possibilities come to mind, but mostly I'm curious what the device thinks that string should be ... maybe it's sending a NUL at the end of the string or something that's easily worked around.

Also, the usbcore synchronous I/O utilities should probably act
like the rest of UNIX, and treat "I read all the bytes you asked"
as success in all cases, even if there was additional status that
appeared after those bytes (like -EOVERFLOW).

- Dave





-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to