summaryrefslogtreecommitdiffstats
path: root/drivers/pci/host/pci-xgene.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2016-05-29 01:14:24 +0200
committerBjorn Helgaas <bhelgaas@google.com>2016-06-20 21:06:05 +0200
commit0ccb7eefeb56c8d3cdce53ede23e06c8be894670 (patch)
tree6f929c0bfa55eb14fb0729879bb30d244588beaf /drivers/pci/host/pci-xgene.c
parentPCI: xgene: Free bridge resource list on failure (diff)
downloadlinux-0ccb7eefeb56c8d3cdce53ede23e06c8be894670.tar.xz
linux-0ccb7eefeb56c8d3cdce53ede23e06c8be894670.zip
PCI: xgene: Request host bridge window resources
Request host bridge window resources so they appear in ioport_resource and iomem_resource and are reflected in /proc/ioports and /proc/iomem. For example, the following entries did not previously appear in /proc/iomem: e180000000-e1ffffffff : /soc/pcie@1f2b0000 e180000000-e182ffffff : PCI Bus 0000:01 e180000000-e181ffffff : 0000:01:00.0 e182000000-e1820fffff : 0000:01:00.0 e182100000-e1821fffff : 0000:01:00.0 f000000000-ffffffffff : /soc/pcie@1f2b0000 Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/host/pci-xgene.c')
-rw-r--r--drivers/pci/host/pci-xgene.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/pci/host/pci-xgene.c b/drivers/pci/host/pci-xgene.c
index bc4e1c61206c..7eb20cc76dd3 100644
--- a/drivers/pci/host/pci-xgene.c
+++ b/drivers/pci/host/pci-xgene.c
@@ -540,6 +540,10 @@ static int xgene_pcie_probe_bridge(struct platform_device *pdev)
if (ret)
return ret;
+ ret = devm_request_pci_bus_resources(&pdev->dev, &res);
+ if (ret)
+ goto error;
+
ret = xgene_pcie_setup(port, &res, iobase);
if (ret)
goto error;