aboutsummaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2021-08-03 15:56:55 -0600
committerLorenzo Pieralisi <[email protected]>2021-08-04 12:20:00 +0100
commitd277f6e88c88729b1d57d40bbfb00d0bfc961972 (patch)
tree0b1ebe547d93b8588a55db918e0dc888ce75dba1 /drivers/pci/controller/dwc
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff)
PCI: of: Don't fail devm_pci_alloc_host_bridge() on missing 'ranges'
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/[email protected] Fixes: 669cbc708122 ("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]>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions