Skip to content

Commit 01f414d

Browse files
committed
PCI: apple: Set only available ports up
Fixes "interrupt-map" parsing in of_irq_parse_raw() which takes the node's availability into account. This became apparent after disabling unused PCIe ports in the Apple silicon device trees instead of disabling them. Link: https://lore.kernel.org/asahi/20230214-apple_dts_pcie_disable_unused-v1-0-5ea0d3ddcde3@jannau.net/ Link: https://lore.kernel.org/asahi/1ea2107a-bb86-8c22-0bbc-82c453ab08ce@linaro.org/ Fixes: 1e33888 ("PCI: apple: Add initial hardware bring-up") Cc: stable@vger.kernel.org Signed-off-by: Janne Grunau <j@jannau.net>
1 parent cc0de7f commit 01f414d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pci/controller/pcie-apple.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ static int apple_pcie_init(struct pci_config_window *cfg)
833833
if (ret)
834834
return ret;
835835

836-
for_each_child_of_node(dev->of_node, of_port) {
836+
for_each_available_child_of_node(dev->of_node, of_port) {
837837
ret = apple_pcie_setup_port(pcie, of_port);
838838
if (ret) {
839839
dev_err(pcie->dev, "Port %pOF setup fail: %d\n", of_port, ret);

0 commit comments

Comments
 (0)