Patch "pwm: stm32: Always program polarity" has been added to the 6.12-stable tree
gregkh at linuxfoundation.org
gregkh at linuxfoundation.org
Fri Jan 9 02:24:40 PST 2026
This is a note to let you know that I've just added the patch titled
pwm: stm32: Always program polarity
to the 6.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
pwm-stm32-always-program-polarity.patch
and it can be found in the queue-6.12 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable at vger.kernel.org> know about it.
>From sean at geanix.com Fri Jan 9 11:22:32 2026
From: Sean Nyekjaer <sean at geanix.com>
Date: Thu, 08 Jan 2026 13:45:23 +0100
Subject: pwm: stm32: Always program polarity
To: "Fabrice Gasnier" <fabrice.gasnier at foss.st.com>, "Uwe Kleine-König" <ukleinek at kernel.org>, "Maxime Coquelin" <mcoquelin.stm32 at gmail.com>, "Alexandre Torgue" <alexandre.torgue at foss.st.com>
Cc: "Uwe Kleine-König" <u.kleine-koenig at baylibre.com>, linux-pwm at vger.kernel.org, linux-stm32 at st-md-mailman.stormreply.com, linux-arm-kernel at lists.infradead.org, linux-kernel at vger.kernel.org, stable at vger.kernel.org, "Sean Nyekjaer" <sean at geanix.com>
Message-ID: <20260108-stm32-pwm-v2-1-ced582974f8b at geanix.com>
From: Sean Nyekjaer <sean at geanix.com>
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 at vger.kernel.org # <= 6.12
Signed-off-by: Sean Nyekjaer <sean at geanix.com>
Co-developed-by: Uwe Kleine-König <ukleinek at kernel.org>
Signed-off-by: Uwe Kleine-König <ukleinek at kernel.org>
---
drivers/pwm/pwm-stm32.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/drivers/pwm/pwm-stm32.c
+++ b/drivers/pwm/pwm-stm32.c
@@ -458,8 +458,7 @@ static int stm32_pwm_apply(struct pwm_ch
return 0;
}
- if (state->polarity != pwm->state.polarity)
- stm32_pwm_set_polarity(priv, pwm->hwpwm, state->polarity);
+ stm32_pwm_set_polarity(priv, pwm->hwpwm, state->polarity);
ret = stm32_pwm_config(priv, pwm->hwpwm,
state->duty_cycle, state->period);
Patches currently in stable-queue which might be from sean at geanix.com are
queue-6.12/pwm-stm32-always-program-polarity.patch
More information about the linux-arm-kernel
mailing list