mbox series

[0/3] pwm: stm32: Some improvements

Message ID cover.1710711976.git.u.kleine-koenig@pengutronix.de (mailing list archive)
Headers show
Series pwm: stm32: Some improvements | expand

Message

Uwe Kleine-König March 17, 2024, 9:52 p.m. UTC
Hello,

while working on the character device support on an stm32mp157 I
identified a few bugs / shortcomings in the stm32 pwm driver. These are
fixed here.

I based this series on top of pwm/for-next
+ https://lore.kernel.org/linux-pwm/20240315145443.982807-2-u.kleine-koenig@pengutronix.de
+ a cherry-pick of commit b0cde62e4c54 ("clk: Add a devm variant of clk_rate_exclusive_get()")

Best regards
Uwe

Uwe Kleine-König (3):
  pwm: stm32: Improve precision of calculation in .apply()
  pwm: stm32: Fix for settings using period > UINT32_MAX
  pwm: stm32: Calculate prescaler with a division instead of a loop

 drivers/pwm/pwm-stm32.c | 51 +++++++++++++++++++++++++++--------------
 1 file changed, 34 insertions(+), 17 deletions(-)

base-commit: dd6c6d57ab61d496f6ff7d6ca38611062af142a1
prerequisite-patch-id: 91e339ba6f6870e208f5d7beef4cfd59e81e7c95
prerequisite-patch-id: 733e7061c2d9b5ba2202fed4ecee4b070d423368

Comments

Uwe Kleine-König April 13, 2024, 8:29 a.m. UTC | #1
Hello,

On Sun, Mar 17, 2024 at 10:52:13PM +0100, Uwe Kleine-König wrote:
> while working on the character device support on an stm32mp157 I
> identified a few bugs / shortcomings in the stm32 pwm driver. These are
> fixed here.
> 
> I based this series on top of pwm/for-next
> + https://lore.kernel.org/linux-pwm/20240315145443.982807-2-u.kleine-koenig@pengutronix.de
> + a cherry-pick of commit b0cde62e4c54 ("clk: Add a devm variant of clk_rate_exclusive_get()")

I applied this series to
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next
. The dependencies are in there, too: My pwm-stm32 is in my
pwm/for-next, too, the clk patch is in v6.9-rc1.

Best regards
Uwe