Linux Kernels

PCI: xilinx: Request host bridge window resources

This change “PCI: xilinx: Request host bridge window resources” (commit 93a5b5e) in Linux kernel is authored by Bjorn Helgaas <bhelgaas [at] google.com> on Sat May 28 18:27:03 2016 -0500.

Description of "PCI: xilinx: Request host bridge window resources"

The change “PCI: xilinx: Request host bridge window resources” introduces changes as follows.

PCI: xilinx: 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.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

Linux kernel releases containing commit 93a5b5e

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "PCI: xilinx: Request host bridge window resources"

There are 5 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/pci/host/pcie-xilinx.c | 5 +++++
 1 file changed, 5 insertions(+)
 
diff --git a/drivers/pci/host/pcie-xilinx.c b/drivers/pci/host/pcie-xilinx.c
index 5c456db47c49..4703aa336041 100644
--- a/drivers/pci/host/pcie-xilinx.c
+++ b/drivers/pci/host/pcie-xilinx.c
@@ -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) {

The commit for this change in Linux stable tree is 93a5b5e (patch).

Last modified: 2020/01/11 10:03