diff options
author | Vignesh R <vigneshr@ti.com> | 2018-06-11 09:09:56 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2018-07-09 19:58:22 +0300 |
commit | 38dabd91ff0bde33352ca3cc65ef515599b77a05 (patch) | |
tree | 709e862b2992312fd6fc583d80c1af19321b777d /drivers/pwm/pwm-sun4i.c | |
parent | aa49d628f6e016bcec8c6f8e704b9b18ee697329 (diff) | |
download | linux-38dabd91ff0bde33352ca3cc65ef515599b77a05.tar.xz |
pwm: tiehrpwm: Fix disabling of output of PWMs
pwm-tiehrpwm driver disables PWM output by putting it in low output
state via active AQCSFRC register in ehrpwm_pwm_disable(). But, the
AQCSFRC shadow register is not updated. Therefore, when shadow AQCSFRC
register is re-enabled in ehrpwm_pwm_enable() (say to enable second PWM
output), previous settings are lost as shadow register value is loaded
into active register. This results in things like PWMA getting enabled
automatically, when PWMB is enabled and vice versa. Fix this by
updating AQCSFRC shadow register as well during ehrpwm_pwm_disable().
Fixes: 19891b20e7c2 ("pwm: pwm-tiehrpwm: PWM driver support for EHRPWM")
Cc: stable@vger.kernel.org
Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-sun4i.c')
0 files changed, 0 insertions, 0 deletions