]> git.baikalelectronics.ru Git - kernel.git/commit
ttyFDC: Fix to use native endian MMIO reads
authorJames Hogan <james.hogan@imgtec.com>
Tue, 28 Apr 2015 09:57:30 +0000 (10:57 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 26 May 2015 14:46:52 +0000 (16:46 +0200)
commitc318e5ffa959d3d892d5022f10f0d4ef7d637af3
treeffe6cadc3ad654cfed547b6adecfd926d8761766
parent10f1428d22c6c1c0a37e30bd9155a73ae3cc4a46
ttyFDC: Fix 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 Fast Debug Channel (FDC) TTY
driver to use __raw_readl()/__raw_writel() rather than
ioread32()/iowrite32().

Fixes: 560182fde516 ("TTY: Add MIPS EJTAG Fast Debug Channel TTY driver")
Fixes: ce9a56879bf3 ("ttyFDC: Implement KGDB IO operations.")
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9905/
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
drivers/tty/mips_ejtag_fdc.c