]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
pwm: omap-dmtimer: Do not disable PWM before changing period/duty_cycle
authorLokesh Vutla <lokeshvutla@ti.com>
Thu, 12 Mar 2020 04:22:09 +0000 (09:52 +0530)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 30 Mar 2020 16:03:07 +0000 (18:03 +0200)
commite793eef8062f4a5b24433d0e0aac2ddf9cf71da8
treed04a3a40b9c84c5df5520fd56bcaf374e8c03b31
parent867beb60d131f7a5cde88ba375338285fdc6ddb8
pwm: omap-dmtimer: Do not disable PWM before changing period/duty_cycle

Only the Timer control register(TCLR) cannot be updated when the timer
is running. Registers like Counter register (TCRR), loader register
(TLDR) and match register (TMAR) can be updated while the counter is
running. Since TCLR is not updated in pwm_omap_dmtimer_config(), do not
stop the timer for period/duty_cycle update.

Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-omap-dmtimer.c