Skip to content

Commit a4cc5ea

Browse files
committed
Merge tag 'mips-fixes_5.16_3' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
Pull MIPS fix from Thomas Bogendoerfer: - only enable pci_remap_iospace() for Ralink devices * tag 'mips-fixes_5.16_3' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: MIPS: Only define pci_remap_iospace() for Ralink
2 parents 713ab91 + 09d97da commit a4cc5ea

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

arch/mips/include/asm/mach-ralink/spaces.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66
#define PCI_IOSIZE SZ_64K
77
#define IO_SPACE_LIMIT (PCI_IOSIZE - 1)
88

9+
#define pci_remap_iospace pci_remap_iospace
10+
911
#include <asm/mach-generic/spaces.h>
1012
#endif

arch/mips/include/asm/pci.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
#include <linux/list.h>
2121
#include <linux/of.h>
2222

23-
#ifdef CONFIG_PCI_DRIVERS_GENERIC
24-
#define pci_remap_iospace pci_remap_iospace
25-
#endif
26-
2723
#ifdef CONFIG_PCI_DRIVERS_LEGACY
2824

2925
/*

arch/mips/pci/pci-generic.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ void pcibios_fixup_bus(struct pci_bus *bus)
4747
pci_read_bridge_bases(bus);
4848
}
4949

50+
#ifdef pci_remap_iospace
5051
int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr)
5152
{
5253
unsigned long vaddr;
@@ -60,3 +61,4 @@ int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr)
6061
set_io_port_base(vaddr);
6162
return 0;
6263
}
64+
#endif

0 commit comments

Comments
 (0)