aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/host/pci-aardvark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/host/pci-aardvark.c b/drivers/pci/host/pci-aardvark.c
index b04d37b3c5de..b72f15c99793 100644
--- a/drivers/pci/host/pci-aardvark.c
+++ b/drivers/pci/host/pci-aardvark.c
@@ -437,7 +437,7 @@ static int advk_pcie_rd_conf(struct pci_bus *bus, u32 devfn,
437 u32 reg; 437 u32 reg;
438 int ret; 438 int ret;
439 439
440 if (PCI_SLOT(devfn) != 0) { 440 if ((bus->number == pcie->root_bus_nr) && PCI_SLOT(devfn) != 0) {
441 *val = 0xffffffff; 441 *val = 0xffffffff;
442 return PCIBIOS_DEVICE_NOT_FOUND; 442 return PCIBIOS_DEVICE_NOT_FOUND;
443 } 443 }
@@ -491,7 +491,7 @@ static int advk_pcie_wr_conf(struct pci_bus *bus, u32 devfn,
491 int offset; 491 int offset;
492 int ret; 492 int ret;
493 493
494 if (PCI_SLOT(devfn) != 0) 494 if ((bus->number == pcie->root_bus_nr) && PCI_SLOT(devfn) != 0)
495 return PCIBIOS_DEVICE_NOT_FOUND; 495 return PCIBIOS_DEVICE_NOT_FOUND;
496 496
497 if (where % size) 497 if (where % size)