hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/irqchip/irq-brcmstb-l2.c
....@@ -161,6 +161,7 @@
161161 *init_params)
162162 {
163163 unsigned int clr = IRQ_NOREQUEST | IRQ_NOPROBE | IRQ_NOAUTOEN;
164
+ unsigned int set = 0;
164165 struct brcmstb_l2_intc_data *data;
165166 struct irq_chip_type *ct;
166167 int ret;
....@@ -208,9 +209,12 @@
208209 if (IS_ENABLED(CONFIG_MIPS) && IS_ENABLED(CONFIG_CPU_BIG_ENDIAN))
209210 flags |= IRQ_GC_BE_IO;
210211
212
+ if (init_params->handler == handle_level_irq)
213
+ set |= IRQ_LEVEL;
214
+
211215 /* Allocate a single Generic IRQ chip for this node */
212216 ret = irq_alloc_domain_generic_chips(data->domain, 32, 1,
213
- np->full_name, init_params->handler, clr, 0, flags);
217
+ np->full_name, init_params->handler, clr, set, flags);
214218 if (ret) {
215219 pr_err("failed to allocate generic irq chip\n");
216220 goto out_free_domain;