]> 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)
commitdec38cf58a0f21fb967a78066418a10b1a9cc5b3
tree5bd83715ca2f9e85ed2a132932ebf13317630481
parent3ad7bdf244d678fe72d74f16fddbca687f7c8bf8
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