Skip to contentSkip to conversation

pwm: Changes for 7.1-rc1

GIT PULL Merged Uwe Kleine-König 2 participants 2 messages Apr 23 PWM

lore
Share & tools
lore

Uwe Kleine-König

author maintainer
#0 lore raw

Hello Linus,

the following changes since commit aa8f35172ab66c57d4355a8c4e28d05b44c938e3:

pwm: th1520: fix CLIPPY=1 warning (2026-03-29 09:37:13 +0200)

(= pwm/for-7.1-rc1) are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git tags/pwm/fixes-7.1-rc1

for you to fetch changes up to 68637b68afcc3cb4d56aca14a3a1d1b47b879369:

pwm: atmel-tcb: Cache clock rates and mark chip as atomic (2026-04-22 07:24:33 +0200)

While writing the tag text I thought about splitting the "mark chip as atomic" part of Sangyun's fix into a separate change for the next merge window. But it's still early in the development cycle and I don't expect problems here, so I kept the change as it was tested. Also the patch is a bit unelegant as it results in keeping a clock on during the lifetime of the driver; I expect this to be addressed in one of the next development cycles. Compared to the sleep-in-atomic this is a very minor annoyance and I don't want to delay the fix because of that.

The pwm-stm fix is in next for a week already, the atmel-tcb fix is only contained since next-20260422 with no problem reports.

Thanks for pulling this into your tree at your convenience, Uwe

----------------------------------------------------------------
pwm: Two driver fixes

After having added some more code to libpwm checking the pwm rounding rules for the userspace interface I spotted an issue in the pwm-stm32 driver where in some cases involving inverted polarity the wrong hardware settings for the duty offset are chosen. I think it has little practical effect because the duty offset is in most cases an artificial property of the output waveform. Still it's relevant to get this fixed because this driver serves as a reference implementation for the still young waveform API.

The second fix addresses a sleep-in-atomic issue in the pwm-atmel-tcb driver.

----------------------------------------------------------------
Sangyun Kim (1):
pwm: atmel-tcb: Cache clock rates and mark chip as atomic

Uwe Kleine-König (1):
pwm: stm32: Fix rounding issue for requests with inverted polarity

 drivers/pwm/pwm-atmel-tcb.c | 38 ++++++++++++++++++++++++++++++++++----
 drivers/pwm/pwm-stm32.c     | 22 ++++++++++++----------
 2 files changed, 46 insertions(+), 14 deletions(-)
merge bot Merged
#1 lore raw
The pull request you sent on Thu, 23 Apr 2026 09:32:44 +0200:

The pull request you sent on Thu, 23 Apr 2026 09:32:44 +0200:

Quoted 1 line

https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git tags/pwm/fixes-7.1-rc1

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/8841842cc9be68e0f670323e697c9b3214831d6a

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html