On Tue, May 27, 2003, David Brownell <[EMAIL PROTECTED]> wrote: > Johannes Erdfelt wrote: > > > I think it should change for 2.5 and 2.4. > > I agree that a kernel patch is the right thing here, > maybe even for 2.2 ... but specifically what patch? > > I think changing usbfs to swap those u16 values in > device descriptors it returns from reading the > /proc/bus/usb/BBB/DDD files would fix lsusb ... > > Should the other byteswaps being done in usbcore > continue to be done, though? That'd be rather > disruptive (drivers rely on them), but it's the > root cause of the problem...
Good point. I had originally started working on a patch a while ago but ran into this problem. I forgot about it. Perhaps for 2.5 we should avoid the swap in the core and fix the drivers. For 2.4 (and 2.2 if the change should be made there too) the swap should be done in usbdevfs. That way we minimize the changes in the older kernels, but do things correctly for 2.5 and beyond. Sound reasonable? JE ------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel