]> git.ipfire.org Git - thirdparty/linux.git/commit
platform: Add firmware-agnostic irq and affinity retrieval interface
authorMarc Zyngier <maz@kernel.org>
Mon, 20 Oct 2025 12:29:21 +0000 (13:29 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 27 Oct 2025 16:16:32 +0000 (17:16 +0100)
commit0d5daa938c94b8b9183e9b257a88dc0929d59409
tree84be35908c1288e3782bc3124bd2e682ca89bcde
parent5404f5c06dd41fd4445a01dec77a629e254a62e8
platform: Add firmware-agnostic irq and affinity retrieval interface

Expand platform_get_irq_optional() to also return an affinity if available,
renaming it to platform_get_irq_affinity() in the process.

platform_get_irq_optional() is preserved with its current semantics by
calling into the new helper with a NULL affinity pointer.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Will Deacon <will@kernel.org>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/20251020122944.3074811-5-maz@kernel.org
drivers/base/platform.c
include/linux/platform_device.h