diff options
| author | Doug Brown <[email protected]> | 2022-12-02 18:35:21 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2022-12-06 11:46:13 +0000 |
| commit | 152f2d1def5e4b974947877126ff292a68a8c521 (patch) | |
| tree | d4c2be676ea7464f4d2578d88a6347ee2b8e4ba5 /drivers/pwm/pwm-xilinx.c | |
| parent | pwm: pxa: Remove pxa_pwm_enable/disable (diff) | |
| download | kernel-152f2d1def5e4b974947877126ff292a68a8c521.tar.gz kernel-152f2d1def5e4b974947877126ff292a68a8c521.zip | |
pwm: pxa: Set duty cycle to 0 when disabling PWM
When disabling PWM, the duty cycle needs to be set to 0. This prevents
the previous duty cycle from showing up momentarily when the clock is
re-enabled next time.
Because the clock has to be running in order to configure the duty
cycle, unconditionally enable it early in pxa_pwm_apply and account for
the correct enable count at the end.
Suggested-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Doug Brown <[email protected]>
Reviewed-by: Uwe Kleine-König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-xilinx.c')
0 files changed, 0 insertions, 0 deletions
