diff options
author | Guillermo Rodriguez <guille.rodriguez@gmail.com> | 2016-05-13 13:09:37 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2016-07-11 12:49:35 +0200 |
commit | f718c54c1abab7171d375112bffd199046749953 (patch) | |
tree | 20ac27d690f99b21855e2f9751381c0ea688aa2c /crypto/Kconfig | |
parent | dt-bindings: pwm: Add R-Car H3 device tree bindings (diff) | |
download | linux-f718c54c1abab7171d375112bffd199046749953.tar.xz linux-f718c54c1abab7171d375112bffd199046749953.zip |
pwm: atmel: Fix disabling of PWM channels
When disabling a PWM channel, the PWM clock was being stopped
immediately after writing to PWM_DIS. As a result, the disabling
of the PWM channel did not complete properly, and the PWM output
might be left at the wrong level.
Fix this by waiting for the channel to be effectively disabled
(by checking the PWM_SR register) before disabling the clock.
Signed-off-by: Guillermo Rodriguez <guille.rodriguez@gmail.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'crypto/Kconfig')
0 files changed, 0 insertions, 0 deletions