提交 3e17683f 编写于 作者: L Ludovic Barre 提交者: Marc Zyngier

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: NLudovic Barre <ludovic.barre@foss.st.com>
Signed-off-by: NAntonio Borneo <antonio.borneo@foss.st.com>
Signed-off-by: NMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220606162757.415354-2-antonio.borneo@foss.st.com
上级 95001b75
...@@ -614,7 +614,7 @@ static int stm32_exti_h_set_affinity(struct irq_data *d, ...@@ -614,7 +614,7 @@ static int stm32_exti_h_set_affinity(struct irq_data *d,
if (d->parent_data->chip) if (d->parent_data->chip)
return irq_chip_set_affinity_parent(d, dest, force); 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) static int __maybe_unused stm32_exti_h_suspend(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册