[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <7ebsnb2uoriokrmxswii64fiqjmtnojq26gk3xu733bgblmcm6@4rpajnkrc723>
Date: Sat, 12 Apr 2025 14:44:40 +0200
From: Uwe Kleine-König <u.kleine-koenig@...libre.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: linux-pwm@...r.kernel.org, linux-kernel@...r.kernel.org,
Trevor Gamblin <tgamblin@...libre.com>, Geert Uytterhoeven <geert+renesas@...der.be>,
Josh Poimboeuf <jpoimboe@...nel.org>
Subject: [GIT PULL] pwm: A set of fixes for pwm core and various drivers
Hello Linus,
I was unsure if I should send a fixes PR given that the problems
addressed here are minor in each patch. But given that there are six
patches now (which is an unusually high number for pwm), I thought
bothering you for that is fine. These commits were included in next
since next-20250408, the first three patches even a tad longer (with a
different commit id though as I added a Reviewed-by tag since then).
The following changes since commit 6df320abbb40654085d7258de33d78481e93ac8d:
dt-bindings: pwm: imx: Add i.MX93, i.MX94 and i.MX95 support (2025-03-10 17:13:54 +0100)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git tags/pwm/for-6.15-rc2-fixes
for you to fetch changes up to a85e08a05bf77d5d03b4ac0c59768a606a1b640b:
pwm: axi-pwmgen: Let .round_waveform_tohw() signal when request was rounded up (2025-04-07 15:10:30 +0200)
Thanks for pulling this into 6.15-rc2.
Best regards
Uwe
----------------------------------------------------------------
pwm: A set of fixes for pwm core and various drivers
The first three patches handle clk_get_rate() returning 0 (which might
happen for example if the CCF is disabled). The first of these was found
because this triggered a warning with clang, the two others by looking
for similar issues in other drivers. Similar patches were merged earlier
for v6.15-rc1 in commit 92b71befc349 ("Merge tag
'objtool-urgent-2025-04-01' of
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip").
The remaining three fixes address issues in the new waveform pwm API.
Now that I worked on this a bit more, the finer details and corner cases
are better understood and the code is fixed accordingly.
----------------------------------------------------------------
Josh Poimboeuf (1):
pwm: mediatek: Prevent divide-by-zero in pwm_mediatek_config()
Uwe Kleine-König (5):
pwm: rcar: Improve register calculation
pwm: fsl-ftm: Handle clk_get_rate() returning 0
pwm: Let pwm_set_waveform() succeed even if lowlevel driver rounded up
pwm: stm32: Search an appropriate duty_cycle if period cannot be modified
pwm: axi-pwmgen: Let .round_waveform_tohw() signal when request was rounded up
drivers/pwm/core.c | 13 +++++++------
drivers/pwm/pwm-axi-pwmgen.c | 10 +++++++---
drivers/pwm/pwm-fsl-ftm.c | 6 ++++++
drivers/pwm/pwm-mediatek.c | 8 ++++++--
drivers/pwm/pwm-rcar.c | 24 +++++++++++++-----------
drivers/pwm/pwm-stm32.c | 12 +++---------
6 files changed, 42 insertions(+), 31 deletions(-)
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists