mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
[ Upstream commit 7346e7a058a2c9aa9ff1cc699c7bf18a402d9f84 ]
When the state changes from enabled to disabled, polarity, duty_cycle
and period are not configured in hardware and TIM_CCER_CCxE is just
cleared. However if the state changes from one disabled state to
another, all parameters are written to hardware because the early exit
from stm32_pwm_apply() is only taken if the pwm is currently enabled.
This yields surprises like: Applying
{ .period = 1, .duty_cycle = 0, .enabled = false }
succeeds if the pwm is initially on, but fails if it's already off
because 1 is a too small period.
Update the check for lazy disable to always exit early if the target
state is disabled, no matter what is currently configured.
Fixes:
|
||
| .. | ||
| core.c | ||
| Kconfig | ||
| Makefile | ||
| pwm-ab8500.c | ||
| pwm-atmel-hlcdc.c | ||
| pwm-atmel-tcb.c | ||
| pwm-atmel.c | ||
| pwm-bcm-iproc.c | ||
| pwm-bcm-kona.c | ||
| pwm-bcm2835.c | ||
| pwm-berlin.c | ||
| pwm-brcmstb.c | ||
| pwm-clps711x.c | ||
| pwm-crc.c | ||
| pwm-cros-ec.c | ||
| pwm-ep93xx.c | ||
| pwm-fsl-ftm.c | ||
| pwm-hibvt.c | ||
| pwm-img.c | ||
| pwm-imx-tpm.c | ||
| pwm-imx1.c | ||
| pwm-imx27.c | ||
| pwm-jz4740.c | ||
| pwm-lp3943.c | ||
| pwm-lpc18xx-sct.c | ||
| pwm-lpc32xx.c | ||
| pwm-lpss-pci.c | ||
| pwm-lpss-platform.c | ||
| pwm-lpss.c | ||
| pwm-lpss.h | ||
| pwm-mediatek.c | ||
| pwm-meson.c | ||
| pwm-mtk-disp.c | ||
| pwm-mxs.c | ||
| pwm-omap-dmtimer.c | ||
| pwm-pca9685.c | ||
| pwm-puv3.c | ||
| pwm-pxa.c | ||
| pwm-rcar.c | ||
| pwm-renesas-tpu.c | ||
| pwm-rockchip.c | ||
| pwm-samsung.c | ||
| pwm-sifive.c | ||
| pwm-spear.c | ||
| pwm-sprd.c | ||
| pwm-sti.c | ||
| pwm-stm32-lp.c | ||
| pwm-stm32.c | ||
| pwm-stmpe.c | ||
| pwm-sun4i.c | ||
| pwm-tegra.c | ||
| pwm-tiecap.c | ||
| pwm-tiehrpwm.c | ||
| pwm-tipwmss.c | ||
| pwm-twl-led.c | ||
| pwm-twl.c | ||
| pwm-vt8500.c | ||
| pwm-zx.c | ||
| sysfs.c | ||