]> 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)
commit336b3928315239d8cddc54017d0f123ec3510e4b
tree9eec892c34b20a129a024fa3530e92ec7f8f7ace
parented6a31aeeeb53dde069d29eda7b4a3e0730c674c
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