PCI: apple: Add tracking of probed root ports
authorMarc Zyngier <maz@kernel.org>
Wed, 25 Jun 2025 11:18:05 +0000 (12:18 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 30 Jun 2025 17:29:05 +0000 (12:29 -0500)
commit643c0c9d0496c5727ca28cd841d069b5afee06cf
tree70ca9597e4c1ef076b028fcc8bee1f7e3ae6f8da
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
PCI: apple: Add tracking of probed root ports

The apple driver relies on being able to directly find the matching root
port structure from the platform device that represents this port.

A previous hack stashed a pointer to the root port structure in the config
window private pointer, but that ended up relying on assumptions that break
other drivers.

Instead, bite the bullet and track the association as part of the driver
itself as a list of probed root ports.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20250625111806.4153773-3-maz@kernel.org
drivers/pci/controller/pcie-apple.c