Thread (15 messages) flat view 15 messages, 4 authors, 2012-03-19
STALE5253d

[PATCH 1/2] ARM: imx6q: add pll round_rate support

From: Richard Zhao <hidden>
Date: 2012-03-15 15:15:23

On Thu, Mar 15, 2012 at 04:00:48PM +0100, Sascha Hauer wrote:
On Thu, Mar 15, 2012 at 10:46:04PM +0800, Richard Zhao wrote:
quoted
On Wed, Mar 14, 2012 at 09:52:28AM +0100, Sascha Hauer wrote:
quoted
On Wed, Mar 14, 2012 at 04:22:58PM +0800, Richard Zhao wrote:
quoted
Signed-off-by: Richard Zhao <redacted>
---
 
 #define DEF_PLL(name)					\
 	static struct clk name = {			\
@@ -681,6 +741,7 @@ static int pll_set_rate(struct clk *clk, unsigned long rate)
 		.disable	= pll_disable,		\
 		.get_rate	= name##_get_rate,	\
 		.set_rate	= name##_set_rate,	\
+		.round_rate	= name##_round_rate,	\
I hope this ## stuff is gone soon with the generic clock framework. It
is so ugly and inefficient.
I hope this doesn't prevent this two patches go in.
Given that we are short from getting a generic clock framework (and I
think this time it's for real) and that you are not mention in any words
what these patches fix I don't see a reason for merging them.
I think the cpu clock is a great challenge for generic clock framework.
When it set_rate, it includes reparent, and change parent's parent's rate.
I don't see any upstream code like that till now. and it's really what
we need.

And it also block cpufreq from upstreaming.


Thanks
Richard
Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help