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

Thierry Reding
2020-03-30T13:18:55Z

[-- Attachment #1: Type: text/plain, Size: 820 bytes --]

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@ti.com>
> ---
> 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@gmail.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]