Skip to content

Commit 34da27a

Browse files
committed
irqchip/imx-intmux: Handle pure domain searches correctly
The removal of the paremeter count restriction in the core code to allow pure domain token based select() decisions broke the IMX intmux select callback as that unconditioally expects that there is a parameter. Add the missing check for zero parameter count and the token match. Fixes: de1ff30 ("genirq/irqdomain: Remove the param count restriction from select()") Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/87ttm3ikok.ffs@tglx
1 parent 9bbe13a commit 34da27a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/irqchip/irq-imx-intmux.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ static int imx_intmux_irq_select(struct irq_domain *d, struct irq_fwspec *fwspec
166166
if (fwspec->fwnode != d->fwnode)
167167
return false;
168168

169+
/* Handle pure domain searches */
170+
if (!fwspec->param_count)
171+
return d->bus_token == bus_token;
172+
169173
return irqchip_data->chanidx == fwspec->param[1];
170174
}
171175

0 commit comments

Comments
 (0)