Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PCI: of: Don't fail devm_pci_alloc_host_bridge() on missing 'ranges'
Commit 669cbc7 ("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/[email protected] Fixes: 669cbc7 ("PCI: Move DT resource setup into devm_pci_alloc_host_bridge()") Reported-by: Rafał Miłecki <[email protected]> Tested-by: Rafał Miłecki <[email protected]> Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Acked-by: Bjorn Helgaas <[email protected]> Cc: Srinath Mannam <[email protected]> Cc: Roman Bacik <[email protected]> Cc: Bharat Gooty <[email protected]> Cc: Abhishek Shah <[email protected]> Cc: Jitendra Bhivare <[email protected]> Cc: Ray Jui <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: BCM Kernel Feedback <[email protected]> Cc: Scott Branden <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Lorenzo Pieralisi <[email protected]>
- Loading branch information