1
linux/drivers/acpi/riscv
Sunil V L 1b173cc4bf ACPI: RISC-V: Implement function to add implicit dependencies
RISC-V interrupt controllers for wired interrupts are platform devices
and hence their driver will be probed late. Also, APLIC which is one
such interrupt controller can not be probed early since it needs MSI
services. This needs a probing order between the interrupt controller
driver and the device drivers.

_DEP is typically used to indicate such dependencies. However, the
dependency may be already available like GSI mapping. Hence, instead of
an explicit _DEP, architecture can find the implicit dependencies and
add to the dependency list.

For RISC-V, add the dependencies for below use cases.

1) For devices which has IRQ resource, find out the interrupt controller
   using GSI number map and add the dependency.

2) For PCI host bridges:
        a) If _PRT indicate PCI link devices, add dependency on the link
           device.
        b) If _PRT indicates GSI, find out the interrupt controller
           using GSI number map and add the dependency.

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-13-sunilvl@ventanamicro.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2024-08-27 15:48:35 +02:00
..
cppc.c
cpuidle.c
init.c ACPI: RISC-V: Initialize GSI mapping structures 2024-08-27 15:48:35 +02:00
init.h ACPI: RISC-V: Initialize GSI mapping structures 2024-08-27 15:48:35 +02:00
irq.c ACPI: RISC-V: Implement function to add implicit dependencies 2024-08-27 15:48:35 +02:00
Makefile ACPI: RISC-V: Implement function to reorder irqchip probe entries 2024-08-27 15:48:35 +02:00
rhct.c