Thread (6 messages) 6 messages, 4 authors, 2021-08-04

Re: [PATCH 1/2] PCI: of: Don't fail devm_pci_alloc_host_bridge() on missing 'ranges'

From: Rafał Miłecki <zajec5@gmail.com>
Date: 2021-08-04 06:47:12

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@gmail.com>
Cc: Srinath Mannam <redacted>
Cc: Roman Bacik <redacted>
Cc: Bharat Gooty <redacted>
Cc: Abhishek Shah <redacted>
Cc: Jitendra Bhivare <redacted>
Cc: Ray Jui <redacted>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: BCM Kernel Feedback <bcm-kernel-feedback-list@broadcom.com>
Cc: Scott Branden <sbranden@broadcom.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Lorenzo Pieralisi <redacted>
Signed-off-by: Rob Herring <robh@kernel.org>
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@milecki.pl>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help