From: Alexandre Belloni Date: Mon, 25 May 2015 16:11:49 +0000 (+0200) Subject: pwm: atmel: Fix incorrect CDTY value after disabling X-Git-Tag: omap-for-v4.3/legacy-v2-signed~192^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=472ac3dcac108d6648ee28616c6de1e3b0bb361f;p=pandora-kernel.git 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 Acked-by: Nicolas Ferre Tested-by: Gaƫl PORTAY Signed-off-by: Thierry Reding --- Reading git-diff-tree failed