From ff6f8cd2919badd242593a86191e8fbba9a18a97 Mon Sep 17 00:00:00 2001 From: Prajwal N Date: Fri, 2 Oct 2026 17:34:17 +0530 Subject: irqchip/riscv-imsic: Expose the fwnode via the global config The fwnode describes a global property of the IMSIC interrupt controller that is equally relevant to external consumers of imsic_global_config as it is to the imsic_priv itself. Keeping it in imsic_priv forces the external drivers to access the private structure rather than using the already exported imsic_get_global_config() interface. Moving the fwnode into imsic_global_config makes the public API self-contained and eliminates the need for callers to access imsic_priv internals directly. Signed-off-by: Prajwal N Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20261002120417.2708979-1-prajwal.n@oss.qualcomm.com --- include/linux/irqchip/riscv-imsic.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') diff --git a/include/linux/irqchip/riscv-imsic.h b/include/linux/irqchip/riscv-imsic.h index 61af3a5bea09..b7be1aad7774 100644 --- a/include/linux/irqchip/riscv-imsic.h +++ b/include/linux/irqchip/riscv-imsic.h @@ -46,6 +46,9 @@ struct imsic_local_config { }; struct imsic_global_config { + /* Device details */ + struct fwnode_handle *fwnode; + /* * MSI Target Address Scheme * -- cgit v1.2.3