linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] clk: ti: CLK_SET_RATE_NO_REPARENT for ti,mux-clock
@ 2014-06-17  8:04 Tomi Valkeinen
  2014-06-17  8:04 ` [RFC PATCH] clk: ti: set " Tomi Valkeinen
  0 siblings, 1 reply; 16+ messages in thread
From: Tomi Valkeinen @ 2014-06-17  8:04 UTC (permalink / raw)
  To: Tero Kristo, Paul Walmsley, Mike Turquette, linux-omap
  Cc: Nishanth Menon, Felipe Balbi, Tomi Valkeinen

While implementing DSS support for AM43xx I encountered a problem with clock
mux: clk mux may change the parent clock automatically, and with
set-rate-parent this leads to changing clocks for other devices. The problem is
described in more detail in the actual patch.

The problem doesn't seem to happen in -rc1, even if it was there in linux-next
(20140527). However, in -rc1, if I add debug prints to clk.c, I can see that
the code is going through the parents, but it decides to use the first one (the
correct one). So I presume it's just a matter of right clock rates or such
which will cause the parent to be changed.

Thus I think the problem is still there and should be fixed until it happens
again, either for DSS or for some other device.

This patch changes the behavior for all TI mux-clocks. I think it's much better
to default to CLK_SET_RATE_NO_REPARENT as changing the parent automatically
feels rather dangerouns to me.

Another option could be to set CLK_SET_RATE_NO_REPARENT only when the mux has
"ti,set-rate-parent" set, as (maybe) it's safe to change the parent if the
parent's rate will not be changed.

However, I'm fine with doing this only for the DSS, if someone has ideas how to
do that. A DT property would be easy, but I guess the argument against it is
the same as for the PLL rounding: it's not a hardware property.

Tomi Valkeinen (1):
  clk: ti: set CLK_SET_RATE_NO_REPARENT for ti,mux-clock

 drivers/clk/ti/mux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.9.1


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

end of thread, other threads:[~2014-07-03 22:07 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-17  8:04 [RFC PATCH] clk: ti: CLK_SET_RATE_NO_REPARENT for ti,mux-clock Tomi Valkeinen
2014-06-17  8:04 ` [RFC PATCH] clk: ti: set " Tomi Valkeinen
2014-06-17  8:11   ` Tero Kristo
2014-06-17  8:19     ` Paul Walmsley
2014-06-17  8:23       ` Tero Kristo
2014-06-17 21:08         ` Mike Turquette
2014-06-18  6:33         ` Paul Walmsley
2014-06-17  8:15   ` Paul Walmsley
2014-06-17 21:34     ` Mike Turquette
2014-06-18  6:57       ` Paul Walmsley
2014-06-18  7:06         ` Paul Walmsley
2014-06-17 13:23   ` Felipe Balbi
2014-06-19 11:33   ` Tero Kristo
2014-07-01 19:48     ` Felipe Balbi
2014-07-03  7:41       ` Tero Kristo
2014-07-03 22:06         ` Mike Turquette

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).