Patch "PCI: of: Don't fail devm_pci_alloc_host_bridge() on missing 'ranges'" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    PCI: of: Don't fail devm_pci_alloc_host_bridge() on missing 'ranges'

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     pci-of-don-t-fail-devm_pci_alloc_host_bridge-on-miss.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 42952b952673603666f4a6644602d3b9942f64fc
Author: Rob Herring <robh@xxxxxxxxxx>
Date:   Tue Aug 3 15:56:55 2021 -0600

    PCI: of: Don't fail devm_pci_alloc_host_bridge() on missing 'ranges'
    
    [ Upstream commit d277f6e88c88729b1d57d40bbfb00d0bfc961972 ]
    
    Commit 669cbc708122 ("PCI: Move DT resource setup into
    devm_pci_alloc_host_bridge()") made devm_pci_alloc_host_bridge() fail on
    any DT resource parsing errors, but Broadcom iProc uses
    devm_pci_alloc_host_bridge() on BCMA bus devices that don't have DT
    resources. In particular, there is no 'ranges' property. Fix iProc by
    making 'ranges' optional.
    
    If 'ranges' is required by a platform, there's going to be more errors
    latter on if it is missing.
    
    Link: https://lore.kernel.org/r/20210803215656.3803204-1-robh@xxxxxxxxxx
    Fixes: 669cbc708122 ("PCI: Move DT resource setup into devm_pci_alloc_host_bridge()")
    Reported-by: Rafał Miłecki <zajec5@xxxxxxxxx>
    Tested-by: Rafał Miłecki <rafal@xxxxxxxxxx>
    Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
    Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx>
    Acked-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
    Cc: Srinath Mannam <srinath.mannam@xxxxxxxxxxxx>
    Cc: Roman Bacik <roman.bacik@xxxxxxxxxxxx>
    Cc: Bharat Gooty <bharat.gooty@xxxxxxxxxxxx>
    Cc: Abhishek Shah <abhishek.shah@xxxxxxxxxxxx>
    Cc: Jitendra Bhivare <jitendra.bhivare@xxxxxxxxxxxx>
    Cc: Ray Jui <ray.jui@xxxxxxxxxxxx>
    Cc: Florian Fainelli <f.fainelli@xxxxxxxxx>
    Cc: BCM Kernel Feedback <bcm-kernel-feedback-list@xxxxxxxxxxxx>
    Cc: Scott Branden <sbranden@xxxxxxxxxxxx>
    Cc: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
    Cc: Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/pci/of.c b/drivers/pci/of.c
index ac24cd5439a9..3f6ef2f45e57 100644
--- a/drivers/pci/of.c
+++ b/drivers/pci/of.c
@@ -295,7 +295,7 @@ static int devm_of_pci_get_host_bridge_resources(struct device *dev,
 	/* Check for ranges property */
 	err = of_pci_range_parser_init(&parser, dev_node);
 	if (err)
-		goto failed;
+		return 0;
 
 	dev_dbg(dev, "Parsing ranges property...\n");
 	for_each_of_pci_range(&parser, &range) {



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux