Skip to content

Commit 3e17683

Browse files
ludovicbarreMarc Zyngier
authored andcommitted
irqchip/stm32-exti: Fix irq_set_affinity return value
When there is no parent, there is no specific action to do in stm32-exti irqchip. In such case, it's incorrect returning an error. Let irq_set_affinity to return IRQ_SET_MASK_OK_DONE when there is no parent. Signed-off-by: Ludovic Barre <[email protected]> Signed-off-by: Antonio Borneo <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 95001b7 commit 3e17683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-stm32-exti.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ static int stm32_exti_h_set_affinity(struct irq_data *d,
614614
if (d->parent_data->chip)
615615
return irq_chip_set_affinity_parent(d, dest, force);
616616

617-
return -EINVAL;
617+
return IRQ_SET_MASK_OK_DONE;
618618
}
619619

620620
static int __maybe_unused stm32_exti_h_suspend(void)

0 commit comments

Comments
 (0)