]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sparc: explicitly set PCI_IOBASE to 0
authorNiklas Schnelle <schnelle@linux.ibm.com>
Mon, 10 May 2021 14:52:32 +0000 (16:52 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 10 May 2021 15:37:46 +0000 (17:37 +0200)
Instead of relying on the fallback in asm-generic/io.h which sets
PCI_IOBASE 0 if it is not defined set it explicitly.

Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Link: https://lore.kernel.org/lkml/CAK8P3a3PK9zyeP4ymELtc2ZYnymECoACiigw9Za+pvSJpCk5=g@mail.gmail.com/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/sparc/include/asm/io.h

index 2eefa526b38f034df9ef71437231f93c6d458d69..c019e50702c110eb950b2a91f8a368dbcc1fd750 100644 (file)
@@ -1,6 +1,14 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 #ifndef ___ASM_SPARC_IO_H
 #define ___ASM_SPARC_IO_H
+
+/*
+ * On LEON PCI addresses below 64k are converted to IO accesses.
+ * io_remap_xxx() returns a kernel virtual address in the PCI window so
+ * inb() doesn't need to add an offset.
+ */
+#define PCI_IOBASE ((void __iomem *)0)
+
 #if defined(__sparc__) && defined(__arch64__)
 #include <asm/io_64.h>
 #else