Skip to content

Commit

Permalink
irqchip/irq-pic32-evic: Fix bug with external interrupts.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
digitalpeer authored and Marc Zyngier committed Jun 2, 2016
1 parent fbf8f40 commit 0de6b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/irqchip/irq-pic32-evic.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static int pic32_set_type_edge(struct irq_data *data,
/* set polarity for external interrupts only */
for (i = 0; i < ARRAY_SIZE(priv->ext_irqs); i++) {
if (priv->ext_irqs[i] == data->hwirq) {
ret = pic32_set_ext_polarity(i + 1, flow_type);
ret = pic32_set_ext_polarity(i, flow_type);
if (ret)
return ret;
}
Expand Down

0 comments on commit 0de6b99

Please sign in to comment.