diff options
author | Thomas Bogendoerfer <tbogendoerfer@suse.de> | 2020-01-09 11:34:28 +0100 |
---|---|---|
committer | Paul Burton <paulburton@kernel.org> | 2020-01-09 15:30:56 -0800 |
commit | 10cf8300ecada10f4bd6c9be78439cce98ae6d8b (patch) | |
tree | f7c4812c986b08cfc8e853c6cea57622c26de581 /drivers/dma/iop-adma.h | |
parent | 2634e5a651e74efc415b2eff37116fcb8206b614 (diff) | |
download | linux-stable-10cf8300ecada10f4bd6c9be78439cce98ae6d8b.tar.gz linux-stable-10cf8300ecada10f4bd6c9be78439cce98ae6d8b.tar.bz2 linux-stable-10cf8300ecada10f4bd6c9be78439cce98ae6d8b.zip |
MIPS: SGI-IP27: fix readb/writeb addressing
Our chosen byte swapping, which is what firmware already uses, is to
do readl/writel by normal lw/sw intructions (data invariance). This
also means we need to mangle addresses for u8 and u16 accesses. The
mangling for 16bit has been done aready, but 8bit one was missing.
Correcting this causes different addresses for accesses to the
SuperIO and local bus of the IOC3 chip. This is fixed by changing
byte order in ioc3 and m48rtc_rtc structs.
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: netdev@vger.kernel.org
Cc: linux-rtc@vger.kernel.org
Diffstat (limited to 'drivers/dma/iop-adma.h')
0 files changed, 0 insertions, 0 deletions