Skip to content

Commit dd816ae

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 c562b9e commit dd816ae

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
@@ -832,7 +832,7 @@ static int apple_pcie_init(struct pci_config_window *cfg)
832832
if (ret)
833833
return ret;
834834

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

0 commit comments

Comments
 (0)