summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorLudovic Barre <ludovic.barre@foss.st.com>2022-06-06 18:27:52 +0200
committerMarc Zyngier <maz@kernel.org>2022-07-07 09:07:44 +0100
commit3e17683ff4a870ed99e989425bc976a944978711 (patch)
tree59e46c27ee842f8a3deb3495fa4e2cd84044d4de /drivers/irqchip
parent95001b756467ecc9f5973eb5e74e97699d9bbdf1 (diff)
downloadlinux-3e17683ff4a870ed99e989425bc976a944978711.tar.bz2
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 <ludovic.barre@foss.st.com> Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220606162757.415354-2-antonio.borneo@foss.st.com
Diffstat (limited to 'drivers/irqchip')
-rw-r--r--drivers/irqchip/irq-stm32-exti.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c
index 9d18f47040eb..10c9c742c216 100644
--- a/drivers/irqchip/irq-stm32-exti.c
+++ b/drivers/irqchip/irq-stm32-exti.c
@@ -614,7 +614,7 @@ static int stm32_exti_h_set_affinity(struct irq_data *d,
if (d->parent_data->chip)
return irq_chip_set_affinity_parent(d, dest, force);
- return -EINVAL;
+ return IRQ_SET_MASK_OK_DONE;
}
static int __maybe_unused stm32_exti_h_suspend(void)