[PATCH v2] clk: respect the clock dependencies in of_clk_init
Mike Turquette
mturquette at linaro.org
Mon Feb 24 20:03:47 EST 2014
Quoting Gregory CLEMENT (2014-02-24 09:49:27)
> On 23/02/2014 19:46, Tomasz Figa wrote:
> > On 10.02.2014 18:42, Gregory CLEMENT wrote:
> >> +
> >> + for (i = 0; i < num_parents; i++) {
> >> + if (of_parse_phandle_with_args(np, "clocks", "#clock-cells", i,
> >> + &clkspec))
> >> + return 1;
> >> +
> >> + /* Check if we have such a provider in our array */
> >> + found = false;
> >> + list_for_each_entry(provider, &of_clk_providers, link) {
> >> + if (provider->node == clkspec.np) {
> >> + found = true;
> >> + break;
> >> + }
> >> + }
> >> +
> >> + if (!found)
> >> + return 0;
> >> + }
> >
> > ...or even better, __of_clk_get_from_provider() could modified to return
> > -EPROBE_DEFER if requested provider is not registered and you could
>
> There is already a patch sent for this "clk: return probe defer when DT clock
> not yet ready": http://article.gmane.org/gmane.linux.kernel/1643466
>
> Mike will you take it?
>
> Then I can use it to implement the suggestion made by Tomasz.
I have just merged it to clk-next. I'll push out an updated clk-next
branch later tonight.
Regards,
Mike
More information about the linux-arm-kernel
mailing list