]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pinctrl: stm32: handle semaphore acquisition when handling pinctrl/pinmux
authorGatien Chevallier <gatien.chevallier@foss.st.com>
Wed, 5 Nov 2025 10:50:22 +0000 (11:50 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 10 Nov 2025 22:59:00 +0000 (23:59 +0100)
commit7959deaabea8380a318fefe9f3fffc37e5b0fc15
tree343cef74249cc84a810c8682d11b2d0b069a5fe4
parentdbd2317d7b9f88b7b4b7de0d48173ee178f2ac97
pinctrl: stm32: handle semaphore acquisition when handling pinctrl/pinmux

When a GPIO RIF configuration is in semaphore mode, and the semaphore
hasn't been taken before configuring the GPIO, the write operations
silently fail.

To avoid a silent fail when applying a pinctrl, if the pins that are
being configured are in semaphore mode, take the semaphore. Note that
there is no proper release of the RIF semaphore yet for pinctrl.

Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/stm32/pinctrl-stm32.c