All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rajendra Nayak <rnayak@ti.com>
To: linux-omap@vger.kernel.org
Cc: Rajendra Nayak <rnayak@ti.com>
Subject: [PATCH 03/06] OMAP3: PM: VDD2 dvfs at higher VDD1 opp
Date: Thu, 28 May 2009 18:13:04 +0530	[thread overview]
Message-ID: <1243514587-5323-3-git-send-email-rnayak@ti.com> (raw)
In-Reply-To: <1243514587-5323-2-git-send-email-rnayak@ti.com>

This patch makes sure that VDD2 dvfs always happens at
a higher VDD1 OPP, hence bringing down the VDD2 DVFS latency
to a large extent.
Having a smaller VDD2 dvfs latency helps drivers which are sensitive
to the time during which SDRAM is inaccessible due to SDRC iclk being
disabled.

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

diff --git a/arch/arm/mach-omap2/resource34xx.c b/arch/arm/mach-omap2/resource34xx.c
index 9908e52..4c87436 100644
--- a/arch/arm/mach-omap2/resource34xx.c
+++ b/arch/arm/mach-omap2/resource34xx.c
@@ -353,6 +353,9 @@ int set_opp(struct shared_resource *resp, u32 target_level)
 	int ind;
 
 	if (resp == vdd1_resp) {
+		if (target_level < 3)
+			resource_release("vdd2_opp", &vdd2_dev);
+
 		resource_set_opp_level(VDD1_OPP, target_level, 0);
 		/*
 		 * For VDD1 OPP3 and above, make sure the interconnect
@@ -361,8 +364,6 @@ int set_opp(struct shared_resource *resp, u32 target_level)
 		 */
 		if (target_level >= 3)
 			resource_request("vdd2_opp", &vdd2_dev, 400000);
-		else
-			resource_release("vdd2_opp", &vdd2_dev);
 
 	} else if (resp == vdd2_resp) {
 		tput = target_level;
-- 
1.5.4.7


  reply	other threads:[~2009-05-28 12:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-28 12:43 [PATCH 01/06] OMAP3: PM: Update omap_3430sdp_pm_defconfig Rajendra Nayak
2009-05-28 12:43 ` [PATCH 02/06] OMAP3: PM: Add PER wakeup dependency on WKUP domain Rajendra Nayak
2009-05-28 12:43   ` Rajendra Nayak [this message]
2009-05-28 12:43     ` [PATCH 04/06] OMAP3: PM: Put optimal SMPS stabilization delay Rajendra Nayak
2009-05-28 12:43       ` [PATCH 05/06] OMAP3: PM: Implement locking for any scratchpad access Rajendra Nayak
2009-05-28 12:43         ` [PATCH 06/06] OMAP3: PM: Update VDD1 OPP2 voltage level from 1.05 to 1.075 Rajendra Nayak
2009-06-04 23:24         ` [PATCH 05/06] OMAP3: PM: Implement locking for any scratchpad access Kevin Hilman
2009-06-05 13:11           ` Nayak, Rajendra
2009-06-05 21:26         ` Paul Walmsley
2009-06-05 21:54           ` Woodruff, Richard
2009-06-05 22:21             ` Paul Walmsley
2009-06-05 22:05         ` Kevin Hilman
2009-05-29  5:50   ` [PATCH 02/06] OMAP3: PM: Add PER wakeup dependency on WKUP domain Högander Jouni
2009-05-29  8:53     ` Nayak, Rajendra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1243514587-5323-3-git-send-email-rnayak@ti.com \
    --to=rnayak@ti.com \
    --cc=linux-omap@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.