All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clocksource/drivers/timer-ti-dm: Do one override clock parent in prepare()
@ 2020-04-27 17:28 Lokesh Vutla
  2020-04-28 18:22 ` Tony Lindgren
  2020-06-01 13:11 ` [tip: timers/core] " tip-bot2 for Lokesh Vutla
  0 siblings, 2 replies; 6+ messages in thread
From: Lokesh Vutla @ 2020-04-27 17:28 UTC (permalink / raw)
  To: daniel.lezcano, Tony Lindgren
  Cc: Tero Kristo, Sekhar Nori, Lokesh Vutla, Suman Anna,
	Linux OMAP Mailing List, linux-kernel

omap_dm_timer_prepare() is setting up the parent 32KHz clock. This
prepare() gets called by request_timer in the client's driver. Because of
this, the timer clock parent that is set with assigned-clock-parent is being
overwritten. So drop this default setting of parent in prepare().

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
- As per the discussion happened here[0], dropping the default setting.
[0] https://patchwork.kernel.org/patch/11379875/#23309493

 drivers/clocksource/timer-ti-dm.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c
index 2531eab3d6d7..60aff087947a 100644
--- a/drivers/clocksource/timer-ti-dm.c
+++ b/drivers/clocksource/timer-ti-dm.c
@@ -258,9 +258,7 @@ static int omap_dm_timer_prepare(struct omap_dm_timer *timer)
 	__omap_dm_timer_enable_posted(timer);
 	omap_dm_timer_disable(timer);
 
-	rc = omap_dm_timer_set_source(timer, OMAP_TIMER_SRC_32_KHZ);
-
-	return rc;
+	return 0;
 }
 
 static inline u32 omap_dm_timer_reserved_systimer(int id)
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-06-01 13:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-27 17:28 [PATCH] clocksource/drivers/timer-ti-dm: Do one override clock parent in prepare() Lokesh Vutla
2020-04-28 18:22 ` Tony Lindgren
2020-05-05 16:07   ` Suman Anna
2020-05-05 18:07   ` Tony Lindgren
2020-05-20  9:03     ` Daniel Lezcano
2020-06-01 13:11 ` [tip: timers/core] " tip-bot2 for Lokesh Vutla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.