linux-yocto/drivers/pci
Janne Grunau 7bf946a284 PCI: apple: Set only available ports up
[ Upstream commit 751bec089c ]

Iterating over disabled ports results in of_irq_parse_raw() parsing
the wrong "interrupt-map" entries, as it takes the status of the node
into account.

This became apparent after disabling unused PCIe ports in the Apple
Silicon device trees instead of deleting them.

Switching from for_each_child_of_node_scoped() to
for_each_available_child_of_node_scoped() solves this issue.

Fixes: 1e33888fbe ("PCI: apple: Add initial hardware bring-up")
Fixes: a0189fdfb7 ("arm64: dts: apple: t8103: Disable unused PCIe ports")
Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tested-by: Janne Grunau <j@jannau.net>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Cc: stable@vger.kernel.org
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/
Link: https://patch.msgid.link/20250401091713.2765724-2-maz@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-06 11:00:10 +02:00
..
controller PCI: apple: Set only available ports up 2025-07-06 11:00:10 +02:00
endpoint PCI: endpoint: Finish virtual EP removal in pci_epf_remove_vepf() 2025-02-17 09:40:26 +01:00
hotplug PCI: pciehp: Don't enable HPIE when resuming in poll mode 2025-04-10 14:37:29 +02:00
msi PCI/MSI: Handle lack of irqdomain gracefully 2025-01-02 10:32:10 +01:00
pcie PCI/DPC: Initialize aer_err_info before using it 2025-06-19 15:28:29 +02:00
switch PCI: switchtec: Add Microchip PCI100X device IDs 2025-02-21 13:57:11 +01:00
access.c
ats.c
bus.c
doe.c
ecam.c
host-bridge.c
iov.c
irq.c
Kconfig x86/kaslr: Reduce KASLR entropy on most x86 systems 2025-06-04 14:42:06 +02:00
Makefile
mmap.c
of_property.c
of.c
p2pdma.c
pci-acpi.c
pci-bridge-emul.c
pci-bridge-emul.h
pci-driver.c
pci-label.c
pci-mid.c
pci-pf-stub.c
pci-stub.c
pci-sysfs.c
pci.c PCI: Fix lock symmetry in pci_slot_unlock() 2025-06-27 11:08:51 +01:00
pci.h
probe.c PCI: Fix reference leak in pci_register_host_bridge() 2025-05-02 07:50:41 +02:00
proc.c
quirks.c PCI: Add ACS quirk for Loongson PCIe 2025-06-27 11:08:51 +01:00
remove.c
rom.c
search.c
setup-bus.c PCI: Fix old_size lower bound in calculate_iosize() too 2025-06-04 14:42:08 +02:00
setup-irq.c
setup-res.c
slot.c
syscall.c
vc.c
vgaarb.c
vpd.c
xen-pcifront.c