summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/core.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-05-25 18:11:49 +0200
committerThierry Reding <thierry.reding@gmail.com>2015-06-12 11:16:12 +0200
commit472ac3dcac108d6648ee28616c6de1e3b0bb361f (patch)
treec8e8c98f9737977e5442f45797a6b88c61a2f995 /drivers/pwm/core.c
parent4c027f7ba8520df088d34ae045205a6f8e2a1d76 (diff)
downloadlinux-472ac3dcac108d6648ee28616c6de1e3b0bb361f.tar.bz2
pwm: atmel: Fix incorrect CDTY value after disabling
pwm-leds calls .config() and .disable() in a row. This exhibits that it may happen that the channel gets disabled before CDTY has been updated with CUPD. The issue gets quite worse with long periods. So, ensure that at least one period has past before disabling the channel by polling ISR. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Tested-by: Gaƫl PORTAY <gael.portay@gmail.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/core.c')
0 files changed, 0 insertions, 0 deletions