[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <161909959709.29796.3675847138244013920.tip-bot2@tip-bot2>
Date: Thu, 22 Apr 2021 13:53:17 -0000
From: "irqchip-bot for Marc Zyngier" <tip-bot2@...utronix.de>
To: linux-kernel@...r.kernel.org
Cc: Marc Zyngier <maz@...nel.org>, tglx@...utronix.de
Subject: [irqchip: irq/irqchip-next] irqchip/jcore-aic: Kill use of
irq_create_strict_mappings()
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: 304a7d135a62721f7eaff119c55686d99e9d7d4b
Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/304a7d135a62721f7eaff119c55686d99e9d7d4b
Author: Marc Zyngier <maz@...nel.org>
AuthorDate: Tue, 06 Apr 2021 10:35:51 +01:00
Committer: Marc Zyngier <maz@...nel.org>
CommitterDate: Thu, 22 Apr 2021 14:47:37 +01:00
irqchip/jcore-aic: Kill use of irq_create_strict_mappings()
irq_create_strict_mappings() is a poor way to allow the use of
a linear IRQ domain as a legacy one. Let's be upfront about it.
Signed-off-by: Marc Zyngier <maz@...nel.org>
Link: https://lore.kernel.org/r/20210406093557.1073423-4-maz@kernel.org
---
drivers/irqchip/irq-jcore-aic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/irqchip/irq-jcore-aic.c b/drivers/irqchip/irq-jcore-aic.c
index 033bccb..5f47d8e 100644
--- a/drivers/irqchip/irq-jcore-aic.c
+++ b/drivers/irqchip/irq-jcore-aic.c
@@ -100,11 +100,11 @@ static int __init aic_irq_of_init(struct device_node *node,
jcore_aic.irq_unmask = noop;
jcore_aic.name = "AIC";
- domain = irq_domain_add_linear(node, dom_sz, &jcore_aic_irqdomain_ops,
+ domain = irq_domain_add_legacy(node, dom_sz - min_irq, min_irq, min_irq,
+ &jcore_aic_irqdomain_ops,
&jcore_aic);
if (!domain)
return -ENOMEM;
- irq_create_strict_mappings(domain, min_irq, min_irq, dom_sz - min_irq);
return 0;
}
Powered by blists - more mailing lists