]> git.karo-electronics.de Git - mv-sheeva.git/commit
usb: r8a66597-udc unaligned fifo fix
authorMagnus Damm <damm@opensource.se>
Wed, 30 Sep 2009 11:57:24 +0000 (11:57 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 6 Oct 2009 01:59:03 +0000 (10:59 +0900)
commit59c82d12aa898c2f373b7e44bdea0b7c762ceccc
tree711b5b17b4a1f3c7790d3793bad27beb141dfe42
parent9c472c4dd892b75c19d13b8fdbe35fbb09bdbd0d
usb: r8a66597-udc unaligned fifo fix

Rework the r8a66597-udc fifo code to avoid unaligned accesses.

Without this patch unaligned exceptions will degrade the
USB performance. The exceptions come from the fact that
the usb fifo data buffers may be misaligned.

This patch updates the fifo access code to only use
insl()/outsl() and insw()/outsw() in the case of properly
aligned data buffers. The fallback case is that inl()/inw()
are used for misaligned buffer reads together with outb()
that is used for misaligned buffer writes.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/usb/gadget/r8a66597-udc.h