Skip to content

Commit aff7665

Browse files
lokeshvutladlezcano
authored andcommitted
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. Tested-by: Tony Lindgren <[email protected]> Signed-off-by: Lokesh Vutla <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b34677b commit aff7665

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/clocksource/timer-ti-dm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,6 @@ static int omap_dm_timer_set_load(struct omap_dm_timer *timer, int autoreload,
579579
omap_dm_timer_write_reg(timer, OMAP_TIMER_CTRL_REG, l);
580580
omap_dm_timer_write_reg(timer, OMAP_TIMER_LOAD_REG, load);
581581

582-
omap_dm_timer_write_reg(timer, OMAP_TIMER_TRIGGER_REG, 0);
583582
omap_dm_timer_disable(timer);
584583
return 0;
585584
}

0 commit comments

Comments
 (0)