On Fri, May 13, 2016 at 01:09:37PM +0200, Guillermo Rodriguez wrote: > 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 > --- > drivers/pwm/pwm-atmel.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) Applied, thanks. Thierry