Skip to content

Commit 0de6b99

Browse files
digitalpeerMarc Zyngier
authored andcommitted
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 <[email protected]> Signed-off-by: Purna Chandra Mandal <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
1 parent fbf8f40 commit 0de6b99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-pic32-evic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static int pic32_set_type_edge(struct irq_data *data,
9191
/* set polarity for external interrupts only */
9292
for (i = 0; i < ARRAY_SIZE(priv->ext_irqs); i++) {
9393
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);
9595
if (ret)
9696
return ret;
9797
}

0 commit comments

Comments
 (0)