Thread (7 messages) 7 messages, 5 authors, 2016-06-13

[Query]set clk rate must operate its coordinated clock

From: Jisheng Zhang <hidden>
Date: 2016-03-14 08:09:41
Also in: linux-clk

Dear Mike,

On Fri, 11 Mar 2016 08:51:52 -0800 Michael Turquette wrote:
Jisheng,

Quoting Jisheng Zhang (2016-03-08 23:24:20)
quoted
Dear Stephen, Michael, Sebastian and all, 

I have the following clk case which I dunno the elegant solution:


cpuclk have two parents: cpupll and refclk. When set the cpuclk freq, we
have to set its parent's freq, I.E cpupll freq. But before changing the
cpupll's freq, we should set its refclk as its parent firstly.

AFAIK, this is a common case, I have seen such requirement in rockchip, samsung
clk driver. They solve this by notifier, but as pointed out by Michael
in http://lists.infradead.org/pipermail/linux-arm-kernel/2015-June/351565.html

"This is also a hack and it points towards some missing infrastructure in the
clock framework."

I also don't like the notifier solution, I believe the elegant solution could
be using the coordinated clock infrastructure. So what's the status of
this infrastructure? I can test, and I can even add some code to make it be
ready to be merged if you guide me ;)  
Thanks for the email. I hope to finish that feature before ELC. I have
Cc'd Pi-Cheng Chen from Mediatek who is also interested in coordinated
clock rates.
Glad to hear that. I will test the infrastructure once it's sent out.

Thanks,
Jisheng
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help