diff options
author | Joshua Henderson <digitalpeer@digitalpeer.com> | 2016-05-17 07:05:53 +0200 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-06-02 19:03:50 +0200 |
commit | 0de6b9979e2e10c79e5702d2d902cd7284d17689 (patch) | |
tree | 7e40e0e22ffb8574614c2ca502d5fd17ed15091c /drivers/irqchip/irq-pic32-evic.c | |
parent | irqchip/gicv3-its: numa: Enable workaround for Cavium thunderx erratum 23144 (diff) | |
download | linux-0de6b9979e2e10c79e5702d2d902cd7284d17689.tar.xz linux-0de6b9979e2e10c79e5702d2d902cd7284d17689.zip |
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>
Diffstat (limited to 'drivers/irqchip/irq-pic32-evic.c')
-rw-r--r-- | drivers/irqchip/irq-pic32-evic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-pic32-evic.c b/drivers/irqchip/irq-pic32-evic.c index e7155db01d55..73addb4b625b 100644 --- a/drivers/irqchip/irq-pic32-evic.c +++ b/drivers/irqchip/irq-pic32-evic.c @@ -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; } |