Am Mittwoch, 25. Oktober 2006 20:49 schrieb Laurent Pinchart: > After reading the code I can't find any place where the bcdUSB, idVendor, > idProduct and bcdDevice fields are converted to host CPU's byte order. > > Could anyone confirm ? If so, the documentation should be fixed.
The structure copied into here: ret = usb_get_descriptor(dev, USB_DT_DEVICE, 0, desc, size); if (ret >= 0) memcpy(&dev->descriptor, desc, size); has fields marked le16: struct usb_device_descriptor { __u8 bLength; __u8 bDescriptorType; __le16 bcdUSB; You are right, this is fishy. Regards Oliver ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel