Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Lokesh Vutla and committed by
Daniel Lezcano
6ce4fcb0 ad1ded9d

-1
-1
drivers/clocksource/timer-ti-dm.c
··· 577 577 omap_dm_timer_write_reg(timer, OMAP_TIMER_CTRL_REG, l); 578 578 omap_dm_timer_write_reg(timer, OMAP_TIMER_LOAD_REG, load); 579 579 580 - omap_dm_timer_write_reg(timer, OMAP_TIMER_TRIGGER_REG, 0); 581 580 /* Save the context */ 582 581 timer->context.tclr = l; 583 582 timer->context.tldr = load;