All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP: powerdomains: Make all powerdomain target states as ON at init
@ 2011-07-13  3:26 ` Santosh Shilimkar
  0 siblings, 0 replies; 34+ messages in thread
From: Santosh Shilimkar @ 2011-07-13  3:26 UTC (permalink / raw)
  To: linux-omap; +Cc: linux-arm-kernel, khilman, paul, b-cousson, Rajendra Nayak

From: Rajendra Nayak <rnayak@ti.com>

Program all powerdomain target state as ON; This is to
prevent domains from hitting low power states (if bootloader
has target states set to something other than ON) and potentially
even losing context while PM is not fully initilized.
The PM late init code can then program the desired target
state for all the power domains.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
---
 arch/arm/mach-omap2/powerdomain.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c
index e0490bc..e61866c 100644
--- a/arch/arm/mach-omap2/powerdomain.c
+++ b/arch/arm/mach-omap2/powerdomain.c
@@ -109,6 +109,16 @@ static int _pwrdm_register(struct powerdomain *pwrdm)
 
 	list_add(&pwrdm->node, &pwrdm_list);
 
+	/*
+	* Program all powerdomain target state as ON; This is to
+	* prevent domains from hitting low power states (if bootloader
+	* has target states set to something other than ON) and potentially
+	* even losing context while PM is not fully initilized.
+	* The PM late init code can then program the desired target
+	* state for all the power domains.
+	*/
+	pwrdm_set_next_pwrst(pwrdm, PWRDM_POWER_ON);
+
 	/* Initialize the powerdomain's state counter */
 	for (i = 0; i < PWRDM_MAX_PWRSTS; i++)
 		pwrdm->state_counter[i] = 0;
@@ -218,7 +228,7 @@ static int _pwrdm_post_transition_cb(struct powerdomain *pwrdm, void *unused)
 /**
  * pwrdm_init - set up the powerdomain layer
  * @pwrdm_list: array of struct powerdomain pointers to register
- * @custom_funcs: func pointers for arch specific implementations
+ * @custom_funcs: func pointers for arch specfic implementations
  *
  * Loop through the array of powerdomains @pwrdm_list, registering all
  * that are available on the current CPU. If pwrdm_list is supplied
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2011-08-17  5:12 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-13  3:26 [PATCH] OMAP: powerdomains: Make all powerdomain target states as ON at init Santosh Shilimkar
2011-07-13  3:26 ` Santosh Shilimkar
2011-07-13  3:26 ` [PATCH] OMAP: clockdomain: Wait for powerdomain to be ON when using clockdomain force wakeup Santosh Shilimkar
2011-07-13  3:26   ` Santosh Shilimkar
2011-07-15  8:03   ` Paul Walmsley
2011-07-15  8:03     ` Paul Walmsley
2011-07-16  7:48     ` Santosh Shilimkar
2011-07-16  7:48       ` Santosh Shilimkar
2011-08-11 14:07       ` Santosh
2011-08-11 14:07         ` Santosh
2011-08-12 14:27         ` Paul Walmsley
2011-08-12 14:27           ` Paul Walmsley
2011-08-17  1:47           ` Paul Walmsley
2011-08-17  1:47             ` Paul Walmsley
2011-08-17  5:11             ` Santosh
2011-08-17  5:11               ` Santosh
2011-07-15  7:54 ` [PATCH] OMAP: powerdomains: Make all powerdomain target states as ON at init Paul Walmsley
2011-07-15  7:54   ` Paul Walmsley
2011-07-16  7:28   ` Santosh Shilimkar
2011-07-16  7:28     ` Santosh Shilimkar
2011-08-17  1:50     ` Paul Walmsley
2011-08-17  1:50       ` Paul Walmsley
2011-07-15  8:03 ` Felipe Balbi
2011-07-15  8:03   ` Felipe Balbi
2011-07-15  8:10   ` Paul Walmsley
2011-07-15  8:10     ` Paul Walmsley
2011-07-15  8:17     ` Felipe Balbi
2011-07-15  8:17       ` Felipe Balbi
2011-07-15  8:23       ` Paul Walmsley
2011-07-15  8:23         ` Paul Walmsley
2011-07-15  8:37         ` Felipe Balbi
2011-07-15  8:37           ` Felipe Balbi
2011-08-17  1:56           ` Paul Walmsley
2011-08-17  1:56             ` Paul Walmsley

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.