]> git.ipfire.org Git - people/arne_f/kernel.git/commit
pwm: tiehrpwm: Don't use emulation mode bits to control PWM output
authorVignesh R <vigneshr@ti.com>
Mon, 11 Jun 2018 06:09:55 +0000 (11:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Sep 2018 08:32:40 +0000 (10:32 +0200)
commite0e08ede24c931215ed34424fe48776e7e612dfb
tree96bb8386cca44d794b9f1a529635bc45d93b9b15
parent3ce08627b3e3805c3170f50dfa005f38b86fdfc2
pwm: tiehrpwm: Don't use emulation mode bits to control PWM output

commit aa49d628f6e016bcec8c6f8e704b9b18ee697329 upstream.

As per AM335x TRM SPRUH73P "15.2.2.11 ePWM Behavior During Emulation",
TBCTL[15:14] only have effect during emulation suspend events (IOW,
to stop PWM when debugging using a debugger). These bits have no effect
on PWM output during normal running of system. Hence, remove code
accessing these bits as they have no role in enabling/disabling PWMs.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pwm/pwm-tiehrpwm.c