Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchip/irq-pic32-evic: Fix bug with external interrupts.

The wrong external interrupt bits are being set, offset by 1.

Signed-off-by: Joshua Henderson <digitalpeer@digitalpeer.com>
Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>

authored by

Joshua Henderson and committed by
Marc Zyngier
0de6b997 fbf8f40e

+1 -1
+1 -1
drivers/irqchip/irq-pic32-evic.c
··· 91 91 /* set polarity for external interrupts only */ 92 92 for (i = 0; i < ARRAY_SIZE(priv->ext_irqs); i++) { 93 93 if (priv->ext_irqs[i] == data->hwirq) { 94 - ret = pic32_set_ext_polarity(i + 1, flow_type); 94 + ret = pic32_set_ext_polarity(i, flow_type); 95 95 if (ret) 96 96 return ret; 97 97 }