diff options
author | Herve Codina <herve.codina@bootlin.com> | 2024-06-14 19:32:09 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-06-17 15:48:13 +0200 |
commit | 419e3778ff295c00aa158d9f2854a70b47ba1136 (patch) | |
tree | bb531a9cbb06bbb5c4c70f3d7e240ec3df30b9f7 /kernel/irq/irqdomain.c | |
parent | irqdomain: Handle additional domain flags in irq_domain_instantiate() (diff) | |
download | linux-419e3778ff295c00aa158d9f2854a70b47ba1136.tar.xz linux-419e3778ff295c00aa158d9f2854a70b47ba1136.zip |
irqdomain: Handle domain hierarchy parent in irq_domain_instantiate()
To use irq_domain_instantiate() from irq_domain_create_hierarchy(),
irq_domain_instantiate() needs to handle the domain hierarchy parent.
Add the required functionality.
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240614173232.1184015-9-herve.codina@bootlin.com
Diffstat (limited to 'kernel/irq/irqdomain.c')
-rw-r--r-- | kernel/irq/irqdomain.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 26ad1ea67998..1269a8104e6c 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -265,6 +265,13 @@ struct irq_domain *irq_domain_instantiate(const struct irq_domain_info *info) domain->flags |= info->domain_flags; +#ifdef CONFIG_IRQ_DOMAIN_HIERARCHY + if (info->parent) { + domain->root = info->parent->root; + domain->parent = info->parent; + } +#endif + __irq_domain_publish(domain); return domain; |