irqchip/atmel-aic: Fix irq_retrigger callback return value
authorMarc Zyngier <maz@kernel.org>
Tue, 10 Mar 2020 18:49:18 +0000 (18:49 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 16 Mar 2020 15:48:54 +0000 (15:48 +0000)
The irq_retrigger callback is supposed to return 0 when retrigger
has failed, and a non-zero value otherwise. Tell the core code
that the driver has succedded in using the HW to retrigger the
interrupt.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200310184921.23552-2-maz@kernel.org
drivers/irqchip/irq-atmel-aic.c

index bb1ad451392fd8b7a315a6b2c5bea523af04a62a..2c999dc310c10756236ab87e36e22600a03c1e8c 100644 (file)
@@ -83,7 +83,7 @@ static int aic_retrigger(struct irq_data *d)
        irq_reg_writel(gc, d->mask, AT91_AIC_ISCR);
        irq_gc_unlock(gc);
 
-       return 0;
+       return 1;
 }
 
 static int aic_set_type(struct irq_data *d, unsigned type)