Skip to content

Commit 4443664

Browse files
committed
genirq/irqdomain: Add irq_domain:: Dev for per device MSI domains
Per device domains require the device pointer of the device which instantiated the domain for some purposes. Add the pointer to struct irq_domain. It will be used in the next step which provides the infrastructure to create per device MSI domains. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Acked-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20221124232325.618807601@linutronix.de
1 parent a80c0ac commit 4443664

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/linux/irqdomain.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ struct irq_domain_chip_generic;
132132
* @gc: Pointer to a list of generic chips. There is a helper function for
133133
* setting up one or more generic chips for interrupt controllers
134134
* drivers using the generic chip library which uses this pointer.
135+
* @dev: Pointer to the device which instantiated the irqdomain
136+
* With per device irq domains this is not necessarily the same
137+
* as @pm_dev.
135138
* @pm_dev: Pointer to a device that can be utilized for power management
136139
* purposes related to the irq domain.
137140
* @parent: Pointer to parent irq_domain to support hierarchy irq_domains
@@ -155,6 +158,7 @@ struct irq_domain {
155158
struct fwnode_handle *fwnode;
156159
enum irq_domain_bus_token bus_token;
157160
struct irq_domain_chip_generic *gc;
161+
struct device *dev;
158162
struct device *pm_dev;
159163
#ifdef CONFIG_IRQ_DOMAIN_HIERARCHY
160164
struct irq_domain *parent;

0 commit comments

Comments
 (0)