[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140225010347.22529.41519@quantum>
Date: Mon, 24 Feb 2014 17:03:47 -0800
From: Mike Turquette <mturquette@...aro.org>
To: Gregory CLEMENT <gregory.clement@...e-electrons.com>,
"Tomasz Figa" <tomasz.figa@...il.com>
Cc: "Thomas Petazzoni" <thomas.petazzoni@...e-electrons.com>,
"Andrew Lunn" <andrew@...n.ch>,
"Jason Cooper" <jason@...edaemon.net>,
linux-kernel@...r.kernel.org,
"Ezequiel Garcia" <ezequiel.garcia@...e-electrons.com>,
linux-arm-kernel@...ts.infradead.org,
"Sebastian Hesselbarth" <sebastian.hesselbarth@...il.com>
Subject: Re: [PATCH v2] clk: respect the clock dependencies in of_clk_init
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists