[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1485180493-22949-1-git-send-email-matt.redfearn@imgtec.com>
Date: Mon, 23 Jan 2017 14:08:13 +0000
From: Matt Redfearn <matt.redfearn@...tec.com>
To: Ralf Baechle <ralf@...ux-mips.org>
CC: <linux-mips@...ux-mips.org>,
Matt Redfearn <matt.redfearn@...tec.com>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH] MIPS: Generic: Fix big endian CPUs on generic machine
Big endian CPUs require SWAP_IO_SPACE enabled to swap accesses to little
endian peripherals.
Without this patch, big endian kernels fail to communicate with little
endian periperals, such as PCI devices, on QEMU and FPGA based
platforms.
Signed-off-by: Matt Redfearn <matt.redfearn@...tec.com>
Fixes: eed0eabd12ef ("MIPS: generic: Introduce generic DT-based board support")
---
arch/mips/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index b3c5bde43d34..82dff20edaf9 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -94,6 +94,7 @@ config MIPS_GENERIC
select PCI_DRIVERS_GENERIC
select PINCTRL
select SMP_UP if SMP
+ select SWAP_IO_SPACE
select SYS_HAS_CPU_MIPS32_R1
select SYS_HAS_CPU_MIPS32_R2
select SYS_HAS_CPU_MIPS32_R6
--
2.7.4
Powered by blists - more mailing lists