* [PATCH] regulator: core: Mark all DT based boards as having full constraints
@ 2012-07-06 17:20 Mark Brown
2012-07-06 17:25 ` Liam Girdwood
0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2012-07-06 17:20 UTC (permalink / raw)
To: Liam Girdwood; +Cc: linux-kernel, Mark Brown
Since DT doesn't provide an idiomatic mechanism for enabling full
constraints and since it's much more natural with DT to provide them
just assume that a DT enabled system has full constraints.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
drivers/regulator/core.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 270d9a2..9a70d9c 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -3578,6 +3578,15 @@ static int __init regulator_init_complete(void)
struct regulation_constraints *c;
int enabled, ret;
+ /*
+ * Since DT doesn't provide an idiomatic mechanism for
+ * enabling full constraints and since it's much more natural
+ * with DT to provide them just assume that a DT enabled
+ * system has full constraints.
+ */
+ if (of_have_populated_dt())
+ has_full_constraints = true;
+
mutex_lock(®ulator_list_mutex);
/* If we have a full configuration then disable any regulators
--
1.7.10
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] regulator: core: Mark all DT based boards as having full constraints
2012-07-06 17:20 [PATCH] regulator: core: Mark all DT based boards as having full constraints Mark Brown
@ 2012-07-06 17:25 ` Liam Girdwood
0 siblings, 0 replies; 2+ messages in thread
From: Liam Girdwood @ 2012-07-06 17:25 UTC (permalink / raw)
To: Mark Brown; +Cc: linux-kernel
On Fri, 2012-07-06 at 18:20 +0100, Mark Brown wrote:
> Since DT doesn't provide an idiomatic mechanism for enabling full
> constraints and since it's much more natural with DT to provide them
> just assume that a DT enabled system has full constraints.
>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-06 17:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-06 17:20 [PATCH] regulator: core: Mark all DT based boards as having full constraints Mark Brown
2012-07-06 17:25 ` Liam Girdwood
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.