android_kernel_oneplus_msm8998/drivers/pwm
Vignesh R 57d78f3e00 pwm: tiehrpwm: Fix disabling of output of PWMs
commit 38dabd91ff0bde33352ca3cc65ef515599b77a05 upstream.

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: 19891b20e7 ("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>
2018-09-09 20:04:35 +02:00
..
core.c pwm: Unexport children before chip removal 2016-11-10 16:36:37 +01:00
Kconfig
Makefile
pwm-ab8500.c
pwm-atmel-hlcdc.c
pwm-atmel-tcb.c
pwm-atmel.c
pwm-bcm-kona.c
pwm-bcm2835.c
pwm-berlin.c
pwm-bfin.c
pwm-brcmstb.c
pwm-clps711x.c
pwm-crc.c
pwm-ep93xx.c
pwm-fsl-ftm.c
pwm-img.c
pwm-imx.c
pwm-jz4740.c
pwm-lp3943.c
pwm-lpc18xx-sct.c
pwm-lpc32xx.c pwm: lpc32xx: fix and simplify duty cycle and period calculations 2016-09-15 08:27:43 +02:00
pwm-lpss-pci.c
pwm-lpss-platform.c
pwm-lpss.c
pwm-lpss.h
pwm-mtk-disp.c
pwm-mxs.c
pwm-pca9685.c pwm: pca9685: Fix period change with same duty cycle 2017-03-15 09:57:14 +08:00
pwm-puv3.c
pwm-pxa.c
pwm-rcar.c
pwm-renesas-tpu.c
pwm-rockchip.c
pwm-samsung.c
pwm-spear.c
pwm-sti.c
pwm-sun4i.c
pwm-tegra.c pwm: tegra: Increase precision in PWM rate calculation 2018-03-22 09:23:27 +01:00
pwm-tiecap.c
pwm-tiehrpwm.c pwm: tiehrpwm: Fix disabling of output of PWMs 2018-09-09 20:04:35 +02:00
pwm-tipwmss.c
pwm-tipwmss.h
pwm-twl-led.c
pwm-twl.c
pwm-vt8500.c
sysfs.c pwm: Fix device reference leak 2016-12-08 07:15:24 +01:00