Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61657478 authored by Florian Fainelli's avatar Florian Fainelli Committed by Greg Kroah-Hartman
Browse files

irqchip/irq-bcm7120-l2: Set IRQ_LEVEL for level triggered interrupts



[ Upstream commit 13a157b38ca5b4f9eed81442b8821db293755961 ]

When support for the interrupt controller was added with a5042de2,
we forgot to update the flags to be set to contain IRQ_LEVEL. While the
flow handler is correct, the output from /proc/interrupts does not show
such interrupts as being level triggered when they are, correct that.

Fixes: a5042de2 ("irqchip: bcm7120-l2: Add Broadcom BCM7120-style Level 2 interrupt controller")
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221216230934.2478345-3-f.fainelli@gmail.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3947b166
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -268,7 +268,8 @@ static int __init bcm7120_l2_intc_probe(struct device_node *dn,
		flags |= IRQ_GC_BE_IO;
		flags |= IRQ_GC_BE_IO;


	ret = irq_alloc_domain_generic_chips(data->domain, IRQS_PER_WORD, 1,
	ret = irq_alloc_domain_generic_chips(data->domain, IRQS_PER_WORD, 1,
				dn->full_name, handle_level_irq, clr, 0, flags);
				dn->full_name, handle_level_irq, clr,
				IRQ_LEVEL, flags);
	if (ret) {
	if (ret) {
		pr_err("failed to allocate generic irq chip\n");
		pr_err("failed to allocate generic irq chip\n");
		goto out_free_domain;
		goto out_free_domain;