[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <167631724169.4906.3719073247835646249.tip-bot2@tip-bot2>
Date: Mon, 13 Feb 2023 19:40:41 -0000
From: "irqchip-bot for Johan Hovold" <tip-bot2@...utronix.de>
To: linux-kernel@...r.kernel.org
Cc: philmd@...aro.org, "Hsin-Yi Wang" <hsinyi@...omium.org>,
"Mark-PK Tsai" <mark-pk.tsai@...iatek.com>,
Johan Hovold <johan+linaro@...nel.org>,
Marc Zyngier <maz@...nel.org>, tglx@...utronix.de
Subject: [irqchip: irq/irqchip-next] irqchip/gic-v2m: Use
irq_domain_create_hierarchy()
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: e6e8cd62a56f9ed0dcdf8d01147709b59a111418
Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/e6e8cd62a56f9ed0dcdf8d01147709b59a111418
Author: Johan Hovold <johan+linaro@...nel.org>
AuthorDate: Mon, 13 Feb 2023 11:42:57 +01:00
Committer: Marc Zyngier <maz@...nel.org>
CommitterDate: Mon, 13 Feb 2023 19:31:25
irqchip/gic-v2m: Use irq_domain_create_hierarchy()
Use the irq_domain_create_hierarchy() helper to create the hierarchical
domain, which both serves as documentation and avoids poking at
irqdomain internals.
Reviewed-by: Philippe Mathieu-Daudé <philmd@...aro.org>
Tested-by: Hsin-Yi Wang <hsinyi@...omium.org>
Tested-by: Mark-PK Tsai <mark-pk.tsai@...iatek.com>
Signed-off-by: Johan Hovold <johan+linaro@...nel.org>
Signed-off-by: Marc Zyngier <maz@...nel.org>
Link: https://lore.kernel.org/r/20230213104302.17307-16-johan+linaro@kernel.org
---
drivers/irqchip/irq-gic-v2m.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/irqchip/irq-gic-v2m.c b/drivers/irqchip/irq-gic-v2m.c
index f4d7eeb..f1e75b3 100644
--- a/drivers/irqchip/irq-gic-v2m.c
+++ b/drivers/irqchip/irq-gic-v2m.c
@@ -287,15 +287,14 @@ static __init int gicv2m_allocate_domains(struct irq_domain *parent)
if (!v2m)
return 0;
- inner_domain = irq_domain_create_tree(v2m->fwnode,
- &gicv2m_domain_ops, v2m);
+ inner_domain = irq_domain_create_hierarchy(parent, 0, 0, v2m->fwnode,
+ &gicv2m_domain_ops, v2m);
if (!inner_domain) {
pr_err("Failed to create GICv2m domain\n");
return -ENOMEM;
}
irq_domain_update_bus_token(inner_domain, DOMAIN_BUS_NEXUS);
- inner_domain->parent = parent;
pci_domain = pci_msi_create_irq_domain(v2m->fwnode,
&gicv2m_msi_domain_info,
inner_domain);
Powered by blists - more mailing lists