]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
pinctrl: stm32: Manage irq affinity settings
authorCheick Traore <cheick.traore@foss.st.com>
Tue, 10 Jun 2025 14:30:39 +0000 (16:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:26:00 +0000 (16:26 +0200)
[ 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

index 4a3f5f5b966db606a67c9059b384b2a82930ce33..661eb0c1f79728c27c075f55253385c097c98618 100644 (file)
@@ -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,