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)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 9 Jul 2018 16:57:52 +0000 (18:57 +0200)
commitaa49d628f6e016bcec8c6f8e704b9b18ee697329
tree7c65cd2bec60d2310014756b6dfc607c6d1db8a7
parent4de445cb431eb4b473936396436d819a0724735c
pwm: tiehrpwm: Don't use emulation mode bits to control PWM output

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>
drivers/pwm/pwm-tiehrpwm.c