summaryrefslogtreecommitdiff
path: root/include/linux/irqchip
diff options
context:
space:
mode:
authorPrajwal N <prajwal.n@oss.qualcomm.com>2026-10-02 17:34:17 +0530
committerThomas Gleixner <tglx@kernel.org>2026-10-15 12:16:59 +0200
commitff6f8cd2919badd242593a86191e8fbba9a18a97 (patch)
treeeb5ec7520ee35ecccb3ae2f32d3a3b56ef9d35b1 /include/linux/irqchip
parent5b6e2a46b80ddbc93e72eb4f01519b0c8c3e0ef0 (diff)
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 <prajwal.n@oss.qualcomm.com> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20261002120417.2708979-1-prajwal.n@oss.qualcomm.com
Diffstat (limited to 'include/linux/irqchip')
-rw-r--r--include/linux/irqchip/riscv-imsic.h3
1 files changed, 3 insertions, 0 deletions
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
*