diff options
| author | Uwe Kleine-König <[email protected]> | 2025-04-05 09:27:13 +0000 |
|---|---|---|
| committer | Uwe Kleine-König <[email protected]> | 2025-04-07 13:10:30 +0000 |
| commit | fda6e0034e9da64e1cec31f4539b6c7abd9ed8be (patch) | |
| tree | afb65fc34c2f3f69c98a1b1251e6f08f63255d55 /drivers/pwm/pwm-axi-pwmgen.c | |
| parent | pwm: Let pwm_set_waveform() succeed even if lowlevel driver rounded up (diff) | |
| download | kernel-fda6e0034e9da64e1cec31f4539b6c7abd9ed8be.tar.gz kernel-fda6e0034e9da64e1cec31f4539b6c7abd9ed8be.zip | |
pwm: stm32: Search an appropriate duty_cycle if period cannot be modified
If another channel is already enabled period must not be modified. If
the requested period is smaller than this unchangable period the driver
is still supposed to search a duty_cycle according to the usual rounding
rules.
So don't set the duty_cycle to 0 but continue to determine an
appropriate value for ccr.
Fixes: deaba9cff809 ("pwm: stm32: Implementation of the waveform callbacks")
Signed-off-by: Uwe Kleine-König <[email protected]>
Link: https://lore.kernel.org/r/f0c50df31daa3d6069bfa8d7fb3e71fae241b026.1743844730.git.u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-axi-pwmgen.c')
0 files changed, 0 insertions, 0 deletions
