]> git.baikalelectronics.ru Git - kernel.git/commit
asm-generic: io: don't perform swab during {in,out} string functions
authorWill Deacon <will.deacon@arm.com>
Mon, 17 Dec 2012 23:59:42 +0000 (15:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Dec 2012 01:15:13 +0000 (17:15 -0800)
commit75204d3aada6e6c1e268d7e35e05c383d0a5225a
tree9eec892c34b20a129a024fa3530e92ec7f8f7ace
parent433f93297de2f1d5e7af1fbb34b90f1718869d53
asm-generic: io: don't perform swab during {in,out} string functions

The {in,out}s{b,w,l} functions are designed to operate on a stream of
bytes and therefore should not perform any byte-swapping, regardless of
the CPU byte order.

This patch fixes the generic IO header so that {in,out}s{b,w,l} call the
__raw_{read,write} functions directly rather than going via the
endian-correcting accessors.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Ben Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/io.h