Skip to content

Commit 2cb9155

Browse files
vlsunilrafaeljw
authored andcommitted
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 <[email protected]> Tested-by: Björn Töpel <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 21734d2 commit 2cb9155

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/acpi/pci_link.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,8 @@ static int acpi_pci_link_add(struct acpi_device *device,
748748
if (result)
749749
kfree(link);
750750

751+
acpi_dev_clear_dependencies(device);
752+
751753
return result < 0 ? result : 1;
752754
}
753755

drivers/acpi/scan.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ static const char * const acpi_honor_dep_ids[] = {
863863
"INTC10CF", /* IVSC (MTL) driver must be loaded to allow i2c access to camera sensors */
864864
"RSCV0001", /* RISC-V PLIC */
865865
"RSCV0002", /* RISC-V APLIC */
866+
"PNP0C0F", /* PCI Link Device */
866867
NULL
867868
};
868869

0 commit comments

Comments
 (0)