On 03.08.2021 23:56, Rob Herring wrote:
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. Fixes: 669cbc708122 ("PCI: Move DT resource setup into devm_pci_alloc_host_bridge()") Reported-by: Rafał Miłecki <zajec5@xxxxxxxxx> 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: Rob Herring <robh@xxxxxxxxxx>
You're great Rob, thank you! I've tested it on top of the 669cbc708122 and linux-5.10.y. Tested-by: Rafał Miłecki <rafal@xxxxxxxxxx>