All of lore.kernel.org
 help / color / mirror / Atom feed
From: ahaslam@baylibre.com
To: ulf.hansson@linaro.org, lina.iyer@linaro.org
Cc: khilman@baylibre.com, linux-pm@vger.kernel.org,
	geert@linux-m68k.org, mtitinger@baylibre.com, rjw@rjwysocki.net,
	bcousson@baylibre.com, Axel Haslam <ahaslam+renesas@baylibre.com>
Subject: [RFC v11 2/3] ARM: imx6: pm: declare pm domain latency on power_state struct.
Date: Tue,  9 Feb 2016 14:15:50 +0100	[thread overview]
Message-ID: <1455023751-32521-3-git-send-email-ahaslam@baylibre.com> (raw)
In-Reply-To: <1455023751-32521-1-git-send-email-ahaslam@baylibre.com>

From: Axel Haslam <ahaslam+renesas@baylibre.com>

The generic_pm_domain structure uses an array of latencies to be able to
declare multiple intermediate states.

Declare a single "OFF" state with the default latencies So that the
power_off_latency_ns and power_on_latency_ns fields of generic_pm_domain
structure can be eventualy removed.

Signed-off-by: Axel Haslam <ahaslam+renesas@baylibre.com>
Signed-off-by: Lina Iyer <lina.iyer@linaro.org>
[Lina: pm_genpd_init() argument change]
---
 arch/arm/mach-imx/gpc.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c
index cfc696b..2630d94 100644
--- a/arch/arm/mach-imx/gpc.c
+++ b/arch/arm/mach-imx/gpc.c
@@ -369,13 +369,20 @@ static struct generic_pm_domain imx6q_arm_domain = {
 	.name = "ARM",
 };
 
+static struct genpd_power_state imx6q_arm_domain_states[] = {
+	{
+		.power_off_latency_ns = 25000,
+		.power_on_latency_ns = 2000000,
+	},
+};
+
 static struct pu_domain imx6q_pu_domain = {
 	.base = {
 		.name = "PU",
 		.power_off = imx6q_pm_pu_power_off,
 		.power_on = imx6q_pm_pu_power_on,
-		.power_off_latency_ns = 25000,
-		.power_on_latency_ns = 2000000,
+		.states = imx6q_arm_domain_states,
+		.state_count = ARRAY_SIZE(imx6q_arm_domain_states),
 	},
 };
 
-- 
2.6.3


  parent reply	other threads:[~2016-02-09 13:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-09 13:15 [RFC v11 0/3] Multiple intermediate states for genpd ahaslam
2016-02-09 13:15 ` [RFC v11 1/3] PM / Domains: Support for multiple states ahaslam
2016-02-09 15:38   ` Ulf Hansson
     [not found]     ` <CAKXjFTMzgy1gp5rG4N8UOKkoUa1qMzzrU2Vy7pNF8+FiNbinUQ@mail.gmail.com>
2016-02-10  8:08       ` Ulf Hansson
2016-02-10  9:25         ` Axel Haslam
2016-02-10 10:24           ` Ulf Hansson
2016-02-10 10:56             ` Axel Haslam
2016-02-09 13:15 ` ahaslam [this message]
2016-02-09 15:39   ` [RFC v11 2/3] ARM: imx6: pm: declare pm domain latency on power_state struct Ulf Hansson
2016-02-09 13:15 ` [RFC v11 3/3] PM / Domains: remove old power on/off latencies ahaslam
2016-02-09 15:41   ` Ulf Hansson

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=1455023751-32521-3-git-send-email-ahaslam@baylibre.com \
    --to=ahaslam@baylibre.com \
    --cc=ahaslam+renesas@baylibre.com \
    --cc=bcousson@baylibre.com \
    --cc=geert@linux-m68k.org \
    --cc=khilman@baylibre.com \
    --cc=lina.iyer@linaro.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mtitinger@baylibre.com \
    --cc=rjw@rjwysocki.net \
    --cc=ulf.hansson@linaro.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.