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)
commit02e6d546e3bdc1a8a764343cd1ba354da07e8623
tree5bd83715ca2f9e85ed2a132932ebf13317630481
parent92fd86864ec4ac089de47f0f1f4c47418b343448
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