linux-yocto/drivers/pci
Janne Grunau 941ce28895 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 10:57:58 +02:00
..
controller PCI: apple: Set only available ports up 2025-07-06 10:57:58 +02:00
endpoint PCI: endpoint: Finish virtual EP removal in pci_epf_remove_vepf() 2025-02-21 13:49:45 +01:00
hotplug PCI: pciehp: Don't enable HPIE when resuming in poll mode 2025-04-10 14:33:33 +02:00
msi
pcie PCI/DPC: Initialize aer_err_info before using it 2025-06-27 11:07:16 +01:00
switch PCI: switchtec: Add Microchip PCI100X device IDs 2025-02-21 13:49:59 +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:40:12 +02:00
Makefile
mmap.c
of.c
p2pdma.c
pci-acpi.c
pci-bridge-emul.c
pci-bridge-emul.h
pci-driver.c PCI/PM: Mark devices disconnected if upstream PCIe link is down on resume 2024-10-17 15:21:28 +02:00
pci-label.c
pci-mid.c
pci-pf-stub.c
pci-stub.c
pci-sysfs.c PCI: Add 'reset_subordinate' to reset hierarchy below bridge 2024-12-14 19:54:48 +01:00
pci.c PCI: Fix lock symmetry in pci_slot_unlock() 2025-06-27 11:07:31 +01:00
pci.h PCI: Add 'reset_subordinate' to reset hierarchy below bridge 2024-12-14 19:54:48 +01:00
probe.c PCI: Fix reference leak in pci_register_host_bridge() 2025-05-02 07:46:53 +02:00
proc.c
quirks.c PCI: Add ACS quirk for Loongson PCIe 2025-06-27 11:07:31 +01:00
remove.c PCI: Fix use-after-free in pci_bus_release_domain_nr() 2025-05-02 07:47:10 +02:00
rom.c
search.c
setup-bus.c PCI: Fix old_size lower bound in calculate_iosize() too 2025-06-04 14:40:13 +02:00
setup-irq.c
setup-res.c
slot.c PCI: Fix use-after-free of slot->bus on hot remove 2024-12-14 19:53:59 +01:00
syscall.c
vc.c
vgaarb.c
vpd.c
xen-pcifront.c