PCI: xilinx: Request host bridge window resources
authorBjorn Helgaas <bhelgaas@google.com>
Sat, 28 May 2016 23:27:03 +0000 (18:27 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 20 Jun 2016 19:06:06 +0000 (14:06 -0500)
Request host bridge window resources so they appear in ioport_resource and
iomem_resource and are reflected in /proc/ioports and /proc/iomem.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-xilinx.c

index 5c456db..4703aa3 100644 (file)
@@ -693,6 +693,11 @@ static int xilinx_pcie_probe(struct platform_device *pdev)
                dev_err(dev, "Getting bridge resources failed\n");
                return err;
        }
+
+       err = devm_request_pci_bus_resources(dev, &res);
+       if (err)
+               goto error;
+
        bus = pci_create_root_bus(&pdev->dev, 0,
                                  &xilinx_pcie_ops, port, &res);
        if (!bus) {