linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lina Iyer <lina.iyer@linaro.org>
To: ulf.hansson@linaro.org, khilman@kernel.org, rjw@rjwysocki.net,
	linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Cc: andy.gross@linaro.org, sboyd@codeaurora.org,
	linux-arm-msm@vger.kernel.org, brendan.jackman@arm.com,
	lorenzo.pieralisi@arm.com, sudeep.holla@arm.com,
	Juri.Lelli@arm.com, Lina Iyer <lina.iyer@linaro.org>
Subject: [PATCH v4 6/9] PM / Domains: Save the fwnode in genpd_power_state
Date: Mon, 24 Oct 2016 15:21:05 -0700	[thread overview]
Message-ID: <1477347668-41901-7-git-send-email-lina.iyer@linaro.org> (raw)
In-Reply-To: <1477347668-41901-1-git-send-email-lina.iyer@linaro.org>

Save the fwnode for the genpd state in the state node. PM Domain clients
may use the fwnode to read in the platform specific domain state
properties and associate them with the state.

Signed-off-by: Lina Iyer <lina.iyer@linaro.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
---
 drivers/base/power/domain.c | 1 +
 include/linux/pm_domain.h   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index 0e59f1d..f056c80 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -1956,6 +1956,7 @@ static int genpd_parse_state(struct genpd_power_state *genpd_state,
 
 	genpd_state->power_on_latency_ns = 1000 * exit_latency;
 	genpd_state->power_off_latency_ns = 1000 * entry_latency;
+	genpd_state->fwnode = &state_node->fwnode;
 
 	return 0;
 }
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
index b489496..6a89881 100644
--- a/include/linux/pm_domain.h
+++ b/include/linux/pm_domain.h
@@ -39,6 +39,7 @@ struct genpd_power_state {
 	s64 power_off_latency_ns;
 	s64 power_on_latency_ns;
 	s64 residency_ns;
+	struct fwnode_handle *fwnode;
 };
 
 struct generic_pm_domain {
-- 
2.7.4


  parent reply	other threads:[~2016-10-24 22:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-24 22:20 [PATCH v4 0/9] PM / Domains: DT support for domain idle states & atomic PM domains Lina Iyer
2016-10-24 22:21 ` [PATCH v4 1/9] PM / Domains: Make genpd state allocation dynamic Lina Iyer
2016-10-24 22:21 ` [PATCH v4 2/9] PM / Domain: Add residency property to genpd states Lina Iyer
2016-10-24 22:21 ` [PATCH v4 3/9] PM / Domains: Allow domain power states to be read from DT Lina Iyer
     [not found] ` <1477347668-41901-1-git-send-email-lina.iyer-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-10-24 22:21   ` [PATCH v4 4/9] dt-bindings: add domain-idle-state compatible to arm,idle-state Lina Iyer
2016-10-24 22:21 ` [PATCH v4 5/9] dt-bindings: Update binding for PM domain idle states Lina Iyer
2016-10-24 22:21 ` Lina Iyer [this message]
2016-10-24 22:21 ` [PATCH v4 7/9] PM / Domains: Abstract genpd locking Lina Iyer
2016-10-24 22:21 ` [PATCH v4 8/9] PM / Domains: Support IRQ safe PM domains Lina Iyer
2016-12-13 12:47   ` Geert Uytterhoeven
2019-02-26 15:52   ` Geert Uytterhoeven
2019-02-27  0:00     ` Ulf Hansson
2016-10-24 22:21 ` [PATCH v4 9/9] PM / doc: Update device documentation for devices in " Lina Iyer
2016-10-24 22:30 ` [PATCH v4 0/9] PM / Domains: DT support for domain idle states & atomic " Rafael J. Wysocki
2016-10-24 23:05   ` Lina Iyer

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=1477347668-41901-7-git-send-email-lina.iyer@linaro.org \
    --to=lina.iyer@linaro.org \
    --cc=Juri.Lelli@arm.com \
    --cc=andy.gross@linaro.org \
    --cc=brendan.jackman@arm.com \
    --cc=khilman@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=rjw@rjwysocki.net \
    --cc=sboyd@codeaurora.org \
    --cc=sudeep.holla@arm.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).