MIPS: Fix CDMM to use native endian MMIO reads
authorJames Hogan <james.hogan@imgtec.com>
Tue, 28 Apr 2015 09:57:29 +0000 (10:57 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 26 May 2015 14:46:52 +0000 (16:46 +0200)
commite21422de817ab0b67ed1902fe1383bcdeece855e
tree4d6ade38fa6638a82c49f0321f0401176ff7f5b1
parentba155e2d21f6bf05de86a78dbe5bfd8757604a65
MIPS: Fix CDMM to use native endian MMIO reads

The MIPS Common Device Memory Map (CDMM) is internal to the core and has
native endianness. There is therefore no need to byte swap the accesses
on big endian targets, so convert the CDMM bus driver to use
__raw_readl() rather than readl().

Fixes: 8286ae03308c ("MIPS: Add CDMM bus support")
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9904/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
drivers/bus/mips_cdmm.c