linux/drivers/pwm
Fabrice Gasnier 9a0af7cb1c pwm: stm32-lp: fix the check on arr and cmp registers update
[ Upstream commit 3066bc2d58 ]

The ARR (auto reload register) and CMP (compare) registers are
successively written. The status bits to check the update of these
registers are polled together with regmap_read_poll_timeout().
The condition to end the loop may become true, even if one of the
register isn't correctly updated.
So ensure both status bits are set before clearing them.

Fixes: e70a540b4e ("pwm: Add STM32 LPTimer PWM driver")
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-11 13:55:17 +01:00
..
core.c pwm: Changes for v6.1-rc1 2022-10-07 11:32:10 -07:00
Kconfig pwm: Add clock based PWM output driver 2022-07-29 13:41:18 +02:00
Makefile pwm: Add clock based PWM output driver 2022-07-29 13:41:18 +02:00
pwm-ab8500.c
pwm-atmel-hlcdc.c
pwm-atmel-tcb.c pwm: atmel-tcb: Fix typo in comment 2022-06-22 15:33:13 +02:00
pwm-atmel.c
pwm-bcm-iproc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
pwm-bcm-kona.c treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_30.RULE (part 2) 2022-06-10 14:51:35 +02:00
pwm-bcm2835.c
pwm-berlin.c
pwm-brcmstb.c
pwm-clk.c pwm: Add clock based PWM output driver 2022-07-29 13:41:18 +02:00
pwm-clps711x.c pwm: clps71xx: Implement .apply() callback 2022-04-22 18:52:30 +02:00
pwm-crc.c
pwm-cros-ec.c pwm: pwm-cros-ec: Add channel type support 2022-05-20 16:40:01 +02:00
pwm-dwc.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-intel-lgm.c
pwm-iqs620a.c
pwm-jz4740.c
pwm-keembay.c
pwm-lp3943.c pwm: lp3943: Implement .apply() callback 2022-04-22 18:43:09 +02:00
pwm-lpc18xx-sct.c pwm: lpc18xx: Fix period handling 2022-07-29 13:41:18 +02:00
pwm-lpc32xx.c pwm: lpc32xx: Implement .apply() callback 2022-05-20 16:29:01 +02:00
pwm-lpss-pci.c pwm: lpss: Use DEFINE_RUNTIME_DEV_PM_OPS() and pm_ptr() macros 2022-09-28 16:18:57 +02:00
pwm-lpss-platform.c pwm: lpss: Use device_get_match_data() to get device data 2022-09-28 16:18:11 +02:00
pwm-lpss.c pwm: lpss: Make use of bits.h macros for all masks 2022-09-28 16:19:43 +02:00
pwm-lpss.h pwm: lpss: Add a comment to the bypass field 2022-09-28 16:21:46 +02:00
pwm-mediatek.c pwm: mediatek: always use bus clock for PWM on MT7622 2022-12-31 13:32:51 +01:00
pwm-meson.c
pwm-mtk-disp.c pwm: mtk-disp: Fix the parameters calculated by the enabled flag of disp_pwm 2022-12-31 13:32:51 +01:00
pwm-mxs.c
pwm-ntxec.c
pwm-omap-dmtimer.c
pwm-pca9685.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
pwm-pxa.c
pwm-raspberrypi-poe.c pwm: raspberrypi-poe: Fix endianness in firmware struct 2022-04-22 18:50:51 +02:00
pwm-rcar.c
pwm-renesas-tpu.c pwm: renesas-tpu: Improve precision of period and duty_cycle calculation 2022-05-20 16:18:40 +02:00
pwm-rockchip.c pwm: rockchip: Convert to use dev_err_probe() 2022-09-28 14:01:19 +02:00
pwm-samsung.c pwm: samsung: Implement .apply() callback 2022-05-20 15:59:34 +02:00
pwm-sifive.c pwm: sifive: Always let the first pwm_apply_state succeed 2023-03-11 13:55:17 +01:00
pwm-sl28cpld.c
pwm-spear.c
pwm-sprd.c
pwm-sti.c pwm: sti: Implement .apply() callback 2022-05-20 16:28:18 +02:00
pwm-stm32-lp.c pwm: stm32-lp: fix the check on arr and cmp registers update 2023-03-11 13:55:17 +01:00
pwm-stm32.c
pwm-stmpe.c pwm: stmpe: Implement .apply() callback 2022-05-20 16:28:35 +02:00
pwm-sun4i.c pwm-sun4i: Calculate the delay without rounding down to jiffies 2022-04-22 17:44:48 +02:00
pwm-sunplus.c pwm: sunplus-pwm: Add Sunplus SoC SP7021 PWM Driver 2022-04-22 18:34:24 +02:00
pwm-tegra.c pwm: tegra: Fix 32 bit build 2022-12-31 13:33:12 +01:00
pwm-tiecap.c
pwm-tiehrpwm.c
pwm-twl-led.c pwm: twl-led: Document some limitations and link to the reference manual 2022-07-29 13:41:18 +02:00
pwm-twl.c
pwm-visconti.c
pwm-vt8500.c
pwm-xilinx.c pwm: Add support for Xilinx AXI Timer 2022-04-22 18:30:44 +02:00
sysfs.c pwm: sysfs: Replace sprintf() with sysfs_emit() 2022-09-28 17:52:02 +02:00