[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1365135708-23886-1-git-send-email-nm@ti.com>
Date: Thu, 4 Apr 2013 23:21:46 -0500
From: Nishanth Menon <nm@...com>
To: <cpufreq@...r.kernel.org>, <linux-pm@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nsource.wolfsonmicro.com>,
"Rafael J. Wysocki" <rjw@...k.pl>,
Viresh Kumar <viresh.kumar@...aro.org>,
Shawn Guo <shawn.guo@...aro.org>, Nishanth Menon <nm@...com>
Subject: [PATCH 0/2] cpufreq/regulator: Handle regulators that defer probe with device tree bindings
Hi,
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(-)
Series is based off tag v3.9-rc5 (also applies on rafael's bleeding-edge branch)
Series is also available at:
https://github.com/nmenon/linux-2.6-playground/commits/push/cpufreq-regulator-fixing-v1
git link: git://github.com/nmenon/linux-2.6-playground.git
branch: push/cpufreq-regulator-fixing-v1
Test scenarios(performed on 3.9-rc3 on beagle-XM platform):
test #1: cpu0-supply binding is not present:
http://pastebin.com/0SSC1HAw
test #2: cpu0-supply binding is present, but regulator defers probing:
http://pastebin.com/HCSJqtRK
test #3: cpu0-supply binding is present, but regulator never registers (bug in DT binding)
http://pastebin.com/guUwQcGW
test #4: cpu0-supply binding is present, regulator is available:
http://pastebin.com/hsbBdxiz
Sub Note: This series might not be important for 3.9, considering the regulator
bug has been around since last year, however, it might be nice to have it fixed
up in 3.10 sometime.
Regards,
Nishanth Menon
--
1.7.9.5
--
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