mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-04-01 03:44:08 +00:00
mips: use the the PCI controller's io_map_base
commit eab90291d3
(mips: switch to GENERIC_PCI_IOMAP)
failed to take into account the PCI controller's
io_map_base for mapping IO BARs.
This also caused a new warning on mips.
Fix this, without re-introducing code duplication,
by setting NO_GENERIC_PCI_IOPORT_MAP
and supplying a mips-specific __pci_ioport_map.
Reported-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
b923650b84
commit
0f3b3956c4
2 changed files with 3 additions and 2 deletions
|
@ -2356,6 +2356,7 @@ config PCI
|
||||||
depends on HW_HAS_PCI
|
depends on HW_HAS_PCI
|
||||||
select PCI_DOMAINS
|
select PCI_DOMAINS
|
||||||
select GENERIC_PCI_IOMAP
|
select GENERIC_PCI_IOMAP
|
||||||
|
select NO_GENERIC_PCI_IOPORT_MAP
|
||||||
help
|
help
|
||||||
Find out whether you have a PCI motherboard. PCI is the name of a
|
Find out whether you have a PCI motherboard. PCI is the name of a
|
||||||
bus system, i.e. the way the CPU talks to the other stuff inside
|
bus system, i.e. the way the CPU talks to the other stuff inside
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
||||||
static void __iomem *ioport_map_pci(struct pci_dev *dev,
|
void __iomem *__pci_ioport_map(struct pci_dev *dev,
|
||||||
unsigned long port, unsigned int nr)
|
unsigned long port, unsigned int nr)
|
||||||
{
|
{
|
||||||
struct pci_controller *ctrl = dev->bus->sysdata;
|
struct pci_controller *ctrl = dev->bus->sysdata;
|
||||||
unsigned long base = ctrl->io_map_base;
|
unsigned long base = ctrl->io_map_base;
|
||||||
|
|
Loading…
Add table
Reference in a new issue