From: Lina Iyer <lina.iyer@linaro.org>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Kevin Hilman <khilman@kernel.org>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Andy Gross <andy.gross@linaro.org>,
Stephen Boyd <sboyd@codeaurora.org>,
"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
Brendan Jackman <brendan.jackman@arm.com>,
Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
Sudeep Holla <sudeep.holla@arm.com>,
Juri Lelli <Juri.Lelli@arm.com>
Subject: Re: [PATCH 4/8] PM / Domains: Add fwnode provider to genpd states
Date: Thu, 6 Oct 2016 09:55:36 -0600 [thread overview]
Message-ID: <20161006155536.GF28930@linaro.org> (raw)
In-Reply-To: <CAPDyKFrsLjchkbkqg4O=RfKamO+EgOhZtzw1-_3e5QphLON0XQ@mail.gmail.com>
On Thu, Oct 06 2016 at 06:01 -0600, Ulf Hansson wrote:
>On 5 October 2016 at 22:31, Lina Iyer <lina.iyer@linaro.org> wrote:
>> Save the fwnode for the genpd state in the state node. PM Domain clients
>> may use the fwnode to read in the rest of the properties for the domain
>> state.
>
>What is the "rest"? I assume you mean the non PM domain generic parts,
>but perhaps you could elaborate a bit on that?
>
>>
>> Signed-off-by: Lina Iyer <lina.iyer@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 368a5b8..52fcdb2 100644
>> --- a/drivers/base/power/domain.c
>> +++ b/drivers/base/power/domain.c
>> @@ -1937,6 +1937,7 @@ static int read_genpd_state(struct genpd_power_state *genpd_state,
>> latency = entry_latency + exit_latency;
>> genpd_state->power_on_latency_ns = 1000 * latency;
>> genpd_state->power_off_latency_ns = 1000 * entry_latency;
>> + genpd_state->provider = &state_node->fwnode;
>>
>> return 0;
>> }
>> diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
>> index 4c9152d..eacfa71 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 *provider;
>
>I don't think this is a provider, but just a fwnode_handle to a
>domain-idle-state. Therefore, I would suggest you to rename it to
>"fwnode" instead.
>
OK.
>> };
>>
>> struct generic_pm_domain {
>> --
>> 2.7.4
>>
>
>Kind regards
>Uffe
WARNING: multiple messages have this Message-ID (diff)
From: lina.iyer@linaro.org (Lina Iyer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/8] PM / Domains: Add fwnode provider to genpd states
Date: Thu, 6 Oct 2016 09:55:36 -0600 [thread overview]
Message-ID: <20161006155536.GF28930@linaro.org> (raw)
In-Reply-To: <CAPDyKFrsLjchkbkqg4O=RfKamO+EgOhZtzw1-_3e5QphLON0XQ@mail.gmail.com>
On Thu, Oct 06 2016 at 06:01 -0600, Ulf Hansson wrote:
>On 5 October 2016 at 22:31, Lina Iyer <lina.iyer@linaro.org> wrote:
>> Save the fwnode for the genpd state in the state node. PM Domain clients
>> may use the fwnode to read in the rest of the properties for the domain
>> state.
>
>What is the "rest"? I assume you mean the non PM domain generic parts,
>but perhaps you could elaborate a bit on that?
>
>>
>> Signed-off-by: Lina Iyer <lina.iyer@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 368a5b8..52fcdb2 100644
>> --- a/drivers/base/power/domain.c
>> +++ b/drivers/base/power/domain.c
>> @@ -1937,6 +1937,7 @@ static int read_genpd_state(struct genpd_power_state *genpd_state,
>> latency = entry_latency + exit_latency;
>> genpd_state->power_on_latency_ns = 1000 * latency;
>> genpd_state->power_off_latency_ns = 1000 * entry_latency;
>> + genpd_state->provider = &state_node->fwnode;
>>
>> return 0;
>> }
>> diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
>> index 4c9152d..eacfa71 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 *provider;
>
>I don't think this is a provider, but just a fwnode_handle to a
>domain-idle-state. Therefore, I would suggest you to rename it to
>"fwnode" instead.
>
OK.
>> };
>>
>> struct generic_pm_domain {
>> --
>> 2.7.4
>>
>
>Kind regards
>Uffe
next prev parent reply other threads:[~2016-10-06 15:55 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-05 20:31 [PATCH 0/8] PM / Domains: DT support for domain idle states & atomic PM domains Lina Iyer
2016-10-05 20:31 ` Lina Iyer
2016-10-05 20:31 ` [PATCH 1/8] PM / Domains: Make genpd state allocation dynamic Lina Iyer
2016-10-05 20:31 ` Lina Iyer
2016-10-06 8:36 ` Ulf Hansson
2016-10-06 8:36 ` Ulf Hansson
2016-10-06 15:40 ` Lina Iyer
2016-10-06 15:40 ` Lina Iyer
2016-10-06 19:45 ` Ulf Hansson
2016-10-06 19:45 ` Ulf Hansson
2016-10-06 20:57 ` Lina Iyer
2016-10-06 20:57 ` Lina Iyer
2016-10-07 8:39 ` Ulf Hansson
2016-10-07 8:39 ` Ulf Hansson
2016-10-05 20:31 ` [PATCH 2/8] PM / Domain: Add residency property to genpd states Lina Iyer
2016-10-05 20:31 ` Lina Iyer
2016-10-06 8:38 ` Ulf Hansson
2016-10-06 8:38 ` Ulf Hansson
2016-10-05 20:31 ` [PATCH 3/8] PM / Domains: Allow domain power states to be read from DT Lina Iyer
2016-10-05 20:31 ` Lina Iyer
2016-10-06 8:04 ` Geert Uytterhoeven
2016-10-06 8:04 ` Geert Uytterhoeven
2016-10-06 15:44 ` Lina Iyer
2016-10-06 15:44 ` Lina Iyer
2016-10-06 9:47 ` Ulf Hansson
2016-10-06 9:47 ` Ulf Hansson
2016-10-06 15:53 ` Lina Iyer
2016-10-06 15:53 ` Lina Iyer
2016-10-06 15:54 ` Lina Iyer
2016-10-06 15:54 ` Lina Iyer
2016-10-05 20:31 ` [PATCH 4/8] PM / Domains: Add fwnode provider to genpd states Lina Iyer
2016-10-05 20:31 ` Lina Iyer
2016-10-06 12:01 ` Ulf Hansson
2016-10-06 12:01 ` Ulf Hansson
2016-10-06 15:55 ` Lina Iyer [this message]
2016-10-06 15:55 ` Lina Iyer
2016-10-05 20:31 ` [PATCH 5/8] dt/bindings: Update binding for PM domain idle states Lina Iyer
2016-10-05 20:31 ` Lina Iyer
[not found] ` <1475699519-109623-6-git-send-email-lina.iyer-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-10-06 8:06 ` Geert Uytterhoeven
2016-10-06 8:06 ` Geert Uytterhoeven
[not found] ` <CAMuHMdWxft8o493XN2zg1wj2By7P+qBkrvyQOt7WdBnhPAvSXQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-06 8:09 ` Geert Uytterhoeven
2016-10-06 8:09 ` Geert Uytterhoeven
[not found] ` <CAMuHMdUKbJ1Mt3viEkbCDmZGHQjGi_E=bxEBSHOB1MMY+qfSYQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-06 15:56 ` Lina Iyer
2016-10-06 15:56 ` Lina Iyer
2016-10-05 20:31 ` [PATCH 6/8] PM / Domains: Abstract genpd locking Lina Iyer
2016-10-05 20:31 ` Lina Iyer
2016-10-06 10:56 ` Ulf Hansson
2016-10-06 10:56 ` Ulf Hansson
2016-10-06 15:56 ` Lina Iyer
2016-10-06 15:56 ` Lina Iyer
2016-10-05 20:31 ` [PATCH 7/8] PM / Domains: Support IRQ safe PM domains Lina Iyer
2016-10-05 20:31 ` Lina Iyer
2016-10-06 11:34 ` Ulf Hansson
2016-10-06 11:34 ` Ulf Hansson
2016-10-05 20:31 ` [PATCH 8/8] PM / doc: Update device documentation for devices in " Lina Iyer
2016-10-05 20:31 ` Lina Iyer
2016-10-06 11:48 ` Ulf Hansson
2016-10-06 11:48 ` Ulf Hansson
2016-10-05 20:38 ` [PATCH 0/8] PM / Domains: DT support for domain idle states & atomic " Lina Iyer
2016-10-05 20:38 ` 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=20161006155536.GF28930@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 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.