[RFC V1 1/8] clk: support static parent

Richard Zhao richard.zhao at linaro.org
Wed Nov 30 20:58:20 EST 2011


On Wed, Nov 30, 2011 at 12:41:05PM -0800, Mike Turquette wrote:
> On Wed, Nov 23, 2011 at 4:30 PM, Richard Zhao <richard.zhao at linaro.org> wrote:
> > On Wed, Nov 23, 2011 at 02:11:40PM -0800, Mike Turquette wrote:
> >> On Wed, Nov 23, 2011 at 3:12 AM, Richard Zhao <richard.zhao at linaro.org> wrote:
> > This patch didn't remove .get_parent call. We trust .get_parent most.
> > If .get_parent must not be NULL, clocks without mux have to duplicate
> > the redundant get_parent function.
> 
> I've taken this in for V4 to accommodate DT clk binding support.  I've
> put a comment in clk_init concerning use of .get_parent versus
> statically initializing .parent.
Thanks.
I also did some basic work for imx5 clk dts. I wrote a small tool to convert
my patch to dts. I'll continue to do it once your send out v4 patch.

Richard
> 
> Thanks,
> Mike
> 
> >
> > Thanks
> > Richard
> >>
> >> Check out the way that the simple fixed-rate clk and simple gateable
> >> clk does this in drivers/clk/clk-basic.c
> >>
> >> Regards,
> >> Mike
> >>
> >> >
> >> >        if (clk->ops->recalc_rate)
> >> >                clk->rate = clk->ops->recalc_rate(clk);




More information about the linux-arm-kernel mailing list