mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
ARM: sa1111: Fix irq_retrigger callback return value
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 (if ever). Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20200310184921.23552-4-maz@kernel.org
This commit is contained in:
parent
4ddfc459d0
commit
ad00a325a0
1 changed files with 5 additions and 2 deletions
|
@ -302,10 +302,13 @@ static int sa1111_retrigger_irq(struct irq_data *d)
|
|||
break;
|
||||
}
|
||||
|
||||
if (i == 8)
|
||||
if (i == 8) {
|
||||
pr_err("Danger Will Robinson: failed to re-trigger IRQ%d\n",
|
||||
d->irq);
|
||||
return i == 8 ? -1 : 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int sa1111_type_irq(struct irq_data *d, unsigned int flags)
|
||||
|
|
Loading…
Add table
Reference in a new issue