pwm: atmel: Fix incorrect CDTY value after enabling
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 25 May 2015 13:19:55 +0000 (15:19 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 12 Jun 2015 09:12:20 +0000 (11:12 +0200)
commit4c027f7ba8520df088d34ae045205a6f8e2a1d76
tree2858c9721a8a1419c19aa24dfd74965cbc9732ff
parentcccb94543c8299e0bc7564cc6f8b26e0f15bafde
pwm: atmel: Fix incorrect CDTY value after enabling

CUPD is not flushed before enabling the channel so it will update
CDTY/CPRD just after one period. So we always set CUPD, even when the
channel is not enabled.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-atmel.c