From: Antonio Borneo <antonio.borneo@foss.st.com>
To: Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
Linus Walleij <linus.walleij@linaro.org>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
<linux-kernel@vger.kernel.org>, <linux-gpio@vger.kernel.org>
Cc: "Antonio Borneo" <antonio.borneo@foss.st.com>,
"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
"Clément Le Goffic" <clement.legoffic@foss.st.com>,
linux-arm-kernel@lists.infradead.org,
linux-stm32@st-md-mailman.stormreply.com,
"Cheick Traore" <cheick.traore@foss.st.com>
Subject: [PATCH v2 2/5] pinctrl: stm32: Manage irq affinity settings
Date: Tue, 10 Jun 2025 16:30:39 +0200 [thread overview]
Message-ID: <20250610143042.295376-3-antonio.borneo@foss.st.com> (raw)
In-Reply-To: <20250610143042.295376-1-antonio.borneo@foss.st.com>
From: Cheick Traore <cheick.traore@foss.st.com>
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>
---
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 3abf47e31c019..e0e3e649976b8 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32.c
+++ b/drivers/pinctrl/stm32/pinctrl-stm32.c
@@ -413,6 +413,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.34.1
next prev parent reply other threads:[~2025-06-10 14:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-10 14:30 [PATCH v2 0/5] pinctrl: stm32: add irq affinity, RIF, module support Antonio Borneo
2025-06-10 14:30 ` [PATCH v2 1/5] pinctrl: stm32: Declare stm32_pmx_get_mode() as static Antonio Borneo
2025-06-10 14:30 ` Antonio Borneo [this message]
2025-06-10 14:30 ` [PATCH v2 3/5] pinctrl: stm32: Add RIF support for stm32mp257 Antonio Borneo
2025-06-10 14:30 ` [PATCH v2 4/5] pinctrl: stm32: Allow compile as module " Antonio Borneo
2025-06-10 14:30 ` [PATCH v2 5/5] MAINTAINERS: Add entry for STM32 pinctrl drivers and documentation Antonio Borneo
2025-06-18 9:20 ` [PATCH v2 0/5] pinctrl: stm32: add irq affinity, RIF, module support Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250610143042.295376-3-antonio.borneo@foss.st.com \
--to=antonio.borneo@foss.st.com \
--cc=alexandre.torgue@foss.st.com \
--cc=catalin.marinas@arm.com \
--cc=cheick.traore@foss.st.com \
--cc=clement.legoffic@foss.st.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).