]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pwm: stm32: Always program polarity
authorSean Nyekjaer <sean@geanix.com>
Thu, 8 Jan 2026 12:45:23 +0000 (13:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Jan 2026 14:25:21 +0000 (15:25 +0100)
commit69f542a54578a2854f6f2b5e87eec2a1504a008d
tree243feb0e41d09252e0bc1f3acd20c9ad60042a55
parent828b59fdf8ef22ab2d59ce349d16231723692b50
pwm: stm32: Always program polarity

Commit 7346e7a058a2 ("pwm: stm32: Always do lazy disabling") triggered a
regression where PWM polarity changes could be ignored.

stm32_pwm_set_polarity() was skipped due to a mismatch between the
cached pwm->state.polarity and the actual hardware state, leaving the
hardware polarity unchanged.

Fixes: 7edf7369205b ("pwm: Add driver for STM32 plaftorm")
Cc: stable@vger.kernel.org # <= 6.12
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Co-developed-by: Uwe Kleine-König <ukleinek@kernel.org>
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/pwm-stm32.c