• Vignesh R's avatar
    pwm: tiehrpwm: Fix disabling of output of PWMs · 8001317c
    Vignesh R authored
    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: 19891b20 ("pwm: pwm-tiehrpwm: PWM driver support for EHRPWM")
    Cc: stable@vger.kernel.org
    Signed-off-by: 's avatarVignesh R <vigneshr@ti.com>
    Signed-off-by: 's avatarThierry Reding <thierry.reding@gmail.com>
    Signed-off-by: 's avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    8001317c
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
core.c Loading commit data...
pwm-ab8500.c Loading commit data...
pwm-atmel-hlcdc.c Loading commit data...
pwm-atmel-tcb.c Loading commit data...
pwm-atmel.c Loading commit data...
pwm-bcm-iproc.c Loading commit data...
pwm-bcm-kona.c Loading commit data...
pwm-bcm2835.c Loading commit data...
pwm-berlin.c Loading commit data...
pwm-bfin.c Loading commit data...
pwm-brcmstb.c Loading commit data...
pwm-clps711x.c Loading commit data...
pwm-crc.c Loading commit data...
pwm-cros-ec.c Loading commit data...
pwm-ep93xx.c Loading commit data...
pwm-fsl-ftm.c Loading commit data...
pwm-img.c Loading commit data...
pwm-imx.c Loading commit data...
pwm-jz4740.c Loading commit data...
pwm-lp3943.c Loading commit data...
pwm-lpc18xx-sct.c Loading commit data...
pwm-lpc32xx.c Loading commit data...
pwm-lpss-pci.c Loading commit data...
pwm-lpss-platform.c Loading commit data...
pwm-lpss.c Loading commit data...
pwm-lpss.h Loading commit data...
pwm-meson.c Loading commit data...
pwm-mtk-disp.c Loading commit data...
pwm-mxs.c Loading commit data...
pwm-omap-dmtimer.c Loading commit data...
pwm-pca9685.c Loading commit data...
pwm-puv3.c Loading commit data...
pwm-pxa.c Loading commit data...
pwm-rcar.c Loading commit data...
pwm-renesas-tpu.c Loading commit data...
pwm-rockchip.c Loading commit data...
pwm-samsung.c Loading commit data...
pwm-spear.c Loading commit data...
pwm-sti.c Loading commit data...
pwm-stmpe.c Loading commit data...
pwm-sun4i.c Loading commit data...
pwm-tegra.c Loading commit data...
pwm-tiecap.c Loading commit data...
pwm-tiehrpwm.c Loading commit data...
pwm-tipwmss.c Loading commit data...
pwm-twl-led.c Loading commit data...
pwm-twl.c Loading commit data...
pwm-vt8500.c Loading commit data...
sysfs.c Loading commit data...