diff options
author | Magnus Damm <damm@opensource.se> | 2009-09-30 11:57:24 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-10-06 10:59:03 +0900 |
commit | 59c82d12aa898c2f373b7e44bdea0b7c762ceccc (patch) | |
tree | 711b5b17b4a1f3c7790d3793bad27beb141dfe42 /crypto/compress.c | |
parent | 9c472c4dd892b75c19d13b8fdbe35fbb09bdbd0d (diff) | |
download | blackbird-obmc-linux-59c82d12aa898c2f373b7e44bdea0b7c762ceccc.tar.gz blackbird-obmc-linux-59c82d12aa898c2f373b7e44bdea0b7c762ceccc.zip |
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 'crypto/compress.c')
0 files changed, 0 insertions, 0 deletions