| From 9fb58a32e7a6261032baec357943b598ca2756b4 Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Tue, 10 Jun 2025 16:30:39 +0200 |
| Subject: pinctrl: stm32: Manage irq affinity settings |
| |
| From: Cheick Traore <cheick.traore@foss.st.com> |
| |
| [ Upstream commit 4c5cc2f65386e22166ce006efe515c667aa075e4 ] |
| |
| Trying to set the affinity of the interrupts associated to stm32 |
| pinctrl results in a write error. |
| |
| Fill struct irq_chip::irq_set_affinity to use the default helper |
| function. |
| |
| Signed-off-by: Cheick Traore <cheick.traore@foss.st.com> |
| Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com> |
| Link: https://lore.kernel.org/20250610143042.295376-3-antonio.borneo@foss.st.com |
| Signed-off-by: Linus Walleij <linus.walleij@linaro.org> |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| drivers/pinctrl/stm32/pinctrl-stm32.c | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c |
| index 4a3f5f5b966d..661eb0c1f797 100644 |
| --- a/drivers/pinctrl/stm32/pinctrl-stm32.c |
| +++ b/drivers/pinctrl/stm32/pinctrl-stm32.c |
| @@ -417,6 +417,7 @@ static struct irq_chip stm32_gpio_irq_chip = { |
| .irq_set_wake = irq_chip_set_wake_parent, |
| .irq_request_resources = stm32_gpio_irq_request_resources, |
| .irq_release_resources = stm32_gpio_irq_release_resources, |
| + .irq_set_affinity = IS_ENABLED(CONFIG_SMP) ? irq_chip_set_affinity_parent : NULL, |
| }; |
| |
| static int stm32_gpio_domain_translate(struct irq_domain *d, |
| -- |
| 2.39.5 |
| |