aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorDoug Brown <[email protected]>2022-12-02 19:35:21 +0100
committerThierry Reding <[email protected]>2022-12-06 12:46:13 +0100
commit152f2d1def5e4b974947877126ff292a68a8c521 (patch)
treed4c2be676ea7464f4d2578d88a6347ee2b8e4ba5 /lib/mpi/mpiutil.c
parentf956b838934ab06deeee2ce9d5c8dfe64e4beb24 (diff)
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 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions