]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: pci_link: Clear the dependencies after probe
authorSunil V L <sunilvl@ventanamicro.com>
Mon, 12 Aug 2024 00:59:20 +0000 (06:29 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 27 Aug 2024 13:48:35 +0000 (15:48 +0200)
commit2cb9155d116c4d9dd7610139a876d123b75924ef
tree0cbca176d2acb93ad94f46585309aa289549b84b
parent21734d29f84ad610dbafdca5f4c1bf7ecceeb2fb
ACPI: pci_link: Clear the dependencies after probe

RISC-V platforms need to use dependencies between PCI host bridge, Link
devices and the interrupt controllers to ensure probe order. The
dependency is like below.

Interrupt controller <-- Link Device <-- PCI Host bridge.

If there is no dependency between Link device and PCI Host Bridge,
then PCI devices may be probed prior to Link devices.  If a PCI
device is probed before its Link device, we won't be able to find
its INTx mapping.

So, add the link device's HID to dependency honor list and clear the
dependency after probe is done so that the dependent devices are
unblocked to probe.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Tested-by: Björn Töpel <bjorn@rivosinc.com>
Link: https://patch.msgid.link/20240812005929.113499-9-sunilvl@ventanamicro.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pci_link.c
drivers/acpi/scan.c