Skip to content

Commit a0db71c

Browse files
committed
Merge tag 'pwm/for-6.13-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux
Pull pwm fix from Uwe Kleine-König: "Fix regression in pwm-stm32 driver when converting to new waveform support Fabrice Gasnier found and fixed a regression I introduced with v6.13-rc1 when converting the stm32 pwm driver to support the new waveform stuff. On some hardware variants this completely broke the driver" * tag 'pwm/for-6.13-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux: pwm: stm32: Fix complementary output in round_waveform_tohw()
2 parents 466b2d4 + edc19bd commit a0db71c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pwm/pwm-stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static int stm32_pwm_round_waveform_tohw(struct pwm_chip *chip,
8484

8585
wfhw->ccer = TIM_CCER_CCxE(ch + 1);
8686
if (priv->have_complementary_output)
87-
wfhw->ccer = TIM_CCER_CCxNE(ch + 1);
87+
wfhw->ccer |= TIM_CCER_CCxNE(ch + 1);
8888

8989
rate = clk_get_rate(priv->clk);
9090

0 commit comments

Comments
 (0)