lkml.org 
[lkml]   [2013]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 0/2] cpufreq/regulator: Handle regulators that defer probe with device tree bindings
From
On 5 April 2013 09:51, Nishanth Menon <nm@ti.com> wrote:
> Currently get_regulator returns -EPROBE_DEFER in the case of regulator supply
> which have no device tree node or even if regulator which are depicted in device
> tree node is defering it's registration for valid reasons.
>
> This makes it impossible to use an regulator that registers itself after
> cpufreq-cpu0 probe is complete. The reason for the same is regulator framework
> fails to return appropriate error value when device tree binding is not actually
> present as a node.
>
> Once we fix that, we can then fix cpufreq-cpu0 to make intelligent decisions
> based on return value.
>
> Nishanth Menon (2):
> regulator: core: return err value for regulator_get if there is no DT
> binding
> cpufreq: cpufreq-cpu0: defer probe when regulator is not ready
>
> drivers/cpufreq/cpufreq-cpu0.c | 20 ++++++++++++++------
> drivers/regulator/core.c | 4 ++--
> 2 files changed, 16 insertions(+), 8 deletions(-)

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>


\
 
 \ /
  Last update: 2013-04-05 08:01    [W:2.409 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site