summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2009-09-30 11:57:24 +0000
committerPaul Mundt <lethal@linux-sh.org>2009-10-06 10:59:03 +0900
commit59c82d12aa898c2f373b7e44bdea0b7c762ceccc (patch)
tree711b5b17b4a1f3c7790d3793bad27beb141dfe42 /arch/sh
parent9c472c4dd892b75c19d13b8fdbe35fbb09bdbd0d (diff)
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>
Diffstat (limited to 'arch/sh')
0 files changed, 0 insertions, 0 deletions