Re: [PATCH v3 6/6] clocksource: timer-ti-dm: Enable autoreload in set_pwm

From: Thierry Reding
Date: Mon Mar 30 2020 - 09:18:55 EST


On Thu, Mar 05, 2020 at 01:57:15PM +0530, Lokesh Vutla wrote:
> 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@xxxxxx>
> ---
> drivers/clocksource/timer-ti-dm.c | 16 +++++-----------
> drivers/pwm/pwm-omap-dmtimer.c | 8 +++++---
> include/linux/platform_data/dmtimer-omap.h | 5 ++---
> 3 files changed, 12 insertions(+), 17 deletions(-)

Acked-by: Thierry Reding <thierry.reding@xxxxxxxxx>

Attachment: signature.asc
Description: PGP signature