[irqchip: irq/irqchip-next] irqchip/stm32-exti: Fix irq_set_affinity return value

From: irqchip-bot for Ludovic Barre
Date: Thu Jul 07 2022 - 04:18:40 EST


The following commit has been merged into the irq/irqchip-next branch of irqchip:

Commit-ID: 3e17683ff4a870ed99e989425bc976a944978711
Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/3e17683ff4a870ed99e989425bc976a944978711
Author: Ludovic Barre <ludovic.barre@xxxxxxxxxxx>
AuthorDate: Mon, 06 Jun 2022 18:27:52 +02:00
Committer: Marc Zyngier <maz@xxxxxxxxxx>
CommitterDate: Thu, 07 Jul 2022 09:07:44 +01:00

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@xxxxxxxxxxx>
Signed-off-by: Antonio Borneo <antonio.borneo@xxxxxxxxxxx>
Signed-off-by: Marc Zyngier <maz@xxxxxxxxxx>
Link: https://lore.kernel.org/r/20220606162757.415354-2-antonio.borneo@xxxxxxxxxxx
---
drivers/irqchip/irq-stm32-exti.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c
index 9d18f47..10c9c74 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)