[PATCH RFC v2 3/9] driver core: platform: Add static ACPI nodes IRQ retrieval/mapping code

Lorenzo Pieralisi lpieralisi at kernel.org
Mon Nov 30 00:54:35 PST 2026


ACPI static fwnodes types are not contemplated in the current

platform_get_irq_affinity()

implementation that is there to retrieve and map IRQs for a device.

Add acpi_static_fwnode_irq_get() to platform_get_irq_affinity() for static
ACPI fwnodes to overcome this shortcoming, enabling IRQ retrieval and
mapping for the ACPI static fwnode type in the generic platform IRQ
retrieval API.

Signed-off-by: Lorenzo Pieralisi <lpieralisi at kernel.org>
---
Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
Cc: "Rafael J. Wysocki" <rafael at kernel.org>
Cc: Danilo Krummrich <dakr at kernel.org>
---
 drivers/base/platform.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index 3593d45f4a7a..08a53e44ee26 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -228,6 +228,12 @@ int platform_get_irq_affinity(struct platform_device *dev, unsigned int num,
 		goto out;
 	}
 
+	if (is_acpi_static_node(fwnode)) {
+		ret = acpi_static_fwnode_irq_get(fwnode, num);
+		if (ret > 0 || ret == -EPROBE_DEFER)
+			goto out;
+	}
+
 	/*
 	 * For the index 0 interrupt, allow falling back to GpioInt
 	 * resources. While a device could have both Interrupt and GpioInt

-- 
2.53.0




More information about the linux-arm-kernel mailing list