Interchanging the positions of wPortChange and wPortStatus as you did is
clearly wrong, likewise for wHubChange and wHubStatus.  Their order is
fixed by the USB specification, and the controller can't change it -- if
it did then it would corrupt _every_ byte stream sent to/from a USB
device.

Alan Stern


Because our board is big endian,so if we want exchange data with usb devices(little endian),we must do cpu_to_le(swapping is done by our ohci
controller).When we get wPortChange and wPortStatus of port,ohci controller
transform little endian to big endian.So the stucture usb_port_status have reversed order compared to standard port_status.So we must Interchanging the positions of wPortChange and wPortStatus.


Regards
yfw

_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn




-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to