On Wed, 25 Oct 2006, Laurent Pinchart wrote:

> Hi everybody,
> 
> I recently found out an endianess issue in a USB driver I'm developing. While 
> browsing through the USB stack code to find where the problem comes from, I 
> found what I think to be a mistake in the usb_get_device_descriptor() 
> function documentation.

...

> 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.

You are right.  The code was changed some time ago to remove those 
byte-order conversions and the documentation was never updated.  In fact, 
the definition of the usb_device_descriptor structure has those entries 
declared as __le16.

Feel free to submit a patch...

Alan Stern


-------------------------------------------------------------------------
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

Reply via email to