]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/timer-ti-dm: Enable autoreload in set_pwm
authorLokesh Vutla <lokeshvutla@ti.com>
Thu, 5 Mar 2020 08:27:15 +0000 (13:57 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 16 Mar 2020 11:40:51 +0000 (12:40 +0100)
commitff73a40443e930084ceed3a3c15db815338187ae
tree5bd83715ca2f9e85ed2a132932ebf13317630481
parent1720497c98a85eb43d0bec4697e1dc97126fdb91
clocksource/drivers/timer-ti-dm: Enable autoreload in set_pwm

dm timer ops set_load() api allows to configure the load value and to
set the auto reload feature. But auto reload feature is independent of
load value and should be part of configuring pwm. This way pwm can be
disabled by disabling auto reload feature using set_pwm() so that the
current pwm cycle will be completed. Else pwm disabling causes the
cycle to be stopped abruptly.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200305082715.15861-7-lokeshvutla@ti.com
drivers/clocksource/timer-ti-dm.c
drivers/pwm/pwm-omap-dmtimer.c
include/linux/platform_data/dmtimer-omap.h