]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/timer-ti-dm: Do not update counter on updating the period
authorLokesh Vutla <lokeshvutla@ti.com>
Mon, 24 Feb 2020 05:07:53 +0000 (10:37 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 27 Feb 2020 09:26:23 +0000 (10:26 +0100)
commitcf666a2cedceaafe180a311a75b6e442ffc00dea
treef75d52ced400a814c340094331f0629895d15678
parentb379d8a67db7b33c777491106e1f0a363e8132c9
clocksource/drivers/timer-ti-dm: Do not update counter on updating the period

Write to trigger register(OMAP_TIMER_TRIGGER_REG) will load the value
in Load register(OMAP_TIMER_LOAD_REG) into Counter register
(OMAP_TIMER_COUNTER_REG).

omap_dm_timer_set_load() writes into trigger register every time load
register is updated. When timer is configured in pwm mode, this causes
disruption in current pwm cycle, which is not expected especially when
pwm is used as PPS signal for synchronized PTP clocks. So do not write
into trigger register on updating the period.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200224050753.17784-3-lokeshvutla@ti.com
drivers/clocksource/timer-ti-dm.c