Re: [linux-usb-devel] [PATCH] USB: Add frame_no big endian OHCI quirk

2007-10-08 Thread Dale Farnsworth
On Mon, Oct 08, 2007 at 10:41:40PM +0400, Valentine Barshak wrote: > Add OHCI big endian frame_no quirk. > The frame_no value stored in the HCCA is a 16 bit field > at a specific offset, but since not all CPUs can do 16-bit > memory accesses it's used as a 32 bit field. > And that's why big-endian

[PATCH] USB: Add frame_no big endian OHCI quirk

2007-10-08 Thread Valentine Barshak
Add OHCI big endian frame_no quirk. The frame_no value stored in the HCCA is a 16 bit field at a specific offset, but since not all CPUs can do 16-bit memory accesses it's used as a 32 bit field. And that's why big-endian OHCI will shift 16 bits, unless the spec is not followed. Currently there's

Re: [linux-usb-devel] [PATCH] USB: Add frame_no big endian OHCI quirk.

2007-10-08 Thread Valentine Barshak
I've tested this patch only on PowerPC 440EPx Sequoia. So, this needs to be tested at least on mpc52xx. Thanks, Valentine. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[PATCH] USB: Add frame_no big endian OHCI quirk.

2007-10-08 Thread Valentine Barshak
Add OHCI big endian frame_no quirk. The frame_no value stored in the HCCA is a 16 bit field at a specific offset, but since not all CPUs can do 16-bit memory accesses it's used as a 32 bit field. And that's why big-endian OHCI will shift 16 bits, unless the spec is not followed. Currently there's