Re: [PATCH v2] clk: respect the clock dependencies in of_clk_init

From: Mike Turquette
Date: Mon Feb 24 2014 - 20:04:01 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/