Skip to content

Commit

Permalink
Merge tag 'mips-fixes_5.16_3' of git://git.kernel.org/pub/scm/linux/k…
Browse files Browse the repository at this point in the history
…ernel/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
  • Loading branch information
Linus Torvalds committed Dec 19, 2021
2 parents 713ab91 + 09d97da commit a4cc5ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions arch/mips/include/asm/mach-ralink/spaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
#define PCI_IOSIZE SZ_64K
#define IO_SPACE_LIMIT (PCI_IOSIZE - 1)

#define pci_remap_iospace pci_remap_iospace

#include <asm/mach-generic/spaces.h>
#endif
4 changes: 0 additions & 4 deletions arch/mips/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
#include <linux/list.h>
#include <linux/of.h>

#ifdef CONFIG_PCI_DRIVERS_GENERIC
#define pci_remap_iospace pci_remap_iospace
#endif

#ifdef CONFIG_PCI_DRIVERS_LEGACY

/*
Expand Down
2 changes: 2 additions & 0 deletions arch/mips/pci/pci-generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ void pcibios_fixup_bus(struct pci_bus *bus)
pci_read_bridge_bases(bus);
}

#ifdef pci_remap_iospace
int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr)
{
unsigned long vaddr;
Expand All @@ -60,3 +61,4 @@ int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr)
set_io_port_base(vaddr);
return 0;
}
#endif

0 comments on commit a4cc5ea

Please sign in to comment.