From: Lina Iyer <lina.iyer@linaro.org>
To: Axel Haslam <ahaslam@baylibre.com>
Cc: ulf.hansson@linaro.org, khilman@linaro.org,
k.kozlowski.k@gmail.com, geert@linux-m68k.org, rjw@rjwysocki.net,
bcousson@baylibre.com, linux-pm@vger.kernel.org,
Axel Haslam <ahaslam+renesas@baylibre.com>
Subject: Re: [PATCH v7 1/5] PM / Domains: prepare for multiple states
Date: Fri, 1 May 2015 10:31:45 -0600 [thread overview]
Message-ID: <20150501163145.GD6388@linaro.org> (raw)
In-Reply-To: <5542530E.80803@baylibre.com>
On Thu, Apr 30 2015 at 10:06 -0600, Axel Haslam wrote:
>Hi Lina,
>
>On 30/04/2015 17:29, Lina Iyer wrote:
>>On Thu, Apr 30 2015 at 04:57 -0600, ahaslam@baylibre.com wrote:
>>>From: Axel Haslam <ahaslam+renesas@baylibre.com>
>>>
>>>prepare generic power domain init function parameters
>>>to accept a pointer to the states structure that describes
>>>the possible states that a power domain can enter.
>>>
>>>There is no functional change, as support for multiple
>>>domains will be added in subsequent patches.
>>>
>>>Signed-off-by: Axel Haslam <ahaslam+renesas@baylibre.com>
>>
>><...>
>>
>>>extern void pm_genpd_init(struct generic_pm_domain *genpd,
>>>- struct dev_power_governor *gov, bool is_off);
>>>+ struct dev_power_governor *gov,
>>>+ const struct genpd_power_state *states,
>>>+ unsigned int state_count, bool is_off);
>>>
>>
>>Wouldnt it be better to setup another function pm_genpd_init_simple()
>>that calls into pm_genpd_init() with no arguments?
>>
>>static inline void pm_genpd_init_simple(struct generic_pm_domain *genpd,
>> struct dev_power_governor *gov, bool is_off)
>>{
>> return pm_genpd_init(genpd, gov, NULL, 0, is_off);
>>}
>
>Im not against adding the wrapper if it simplifies things. But, in
>general, i think all latencies should be set, otherwise genpd may
>violate device constraints by turning a power domain off when it
>should not. So maybe, by leaving the arguments, it kind of sends the
>message to the developer that something important is needed.
hmm. Alright.
>
>Regards,
>Axel
>
>>
>>It would be explicit that way to indicate the new genpd feature that
>>would let
>>domains support multiple states.
>>
>>Thanks,
>>Lina
next prev parent reply other threads:[~2015-05-01 16:31 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-30 10:55 [PATCH v7 0/5] genpd multiple states v7 ahaslam
2015-04-30 10:55 ` [PATCH v7 1/5] PM / Domains: prepare for multiple states ahaslam
2015-04-30 15:29 ` Lina Iyer
2015-04-30 16:06 ` Axel Haslam
2015-05-01 16:31 ` Lina Iyer [this message]
2015-05-01 18:58 ` Geert Uytterhoeven
2015-05-08 0:36 ` Krzysztof Kozlowski
2015-05-11 8:23 ` Axel Haslam
2015-05-12 15:37 ` Lina Iyer
2015-05-12 16:26 ` Axel Haslam
2015-04-30 10:55 ` [PATCH v7 2/5] PM / Domains: core changes " ahaslam
2015-05-07 15:53 ` Lina Iyer
2015-05-08 20:53 ` Kevin Hilman
2015-05-08 22:31 ` Lina Iyer
2015-05-11 15:53 ` Axel Haslam
2015-05-11 16:50 ` Lina Iyer
2015-05-12 11:58 ` Axel Haslam
2015-05-12 15:29 ` Lina Iyer
2015-04-30 10:55 ` [PATCH v7 3/5] PM / Domains: make governor select deepest state ahaslam
2015-04-30 10:55 ` [PATCH v7 4/5] ARM: imx6: pm: declare pm domain latency on power_state struct ahaslam
2015-04-30 10:55 ` [PATCH v7 5/5] PM / Domains: remove old power on/off latencies ahaslam
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=20150501163145.GD6388@linaro.org \
--to=lina.iyer@linaro.org \
--cc=ahaslam+renesas@baylibre.com \
--cc=ahaslam@baylibre.com \
--cc=bcousson@baylibre.com \
--cc=geert@linux-m68k.org \
--cc=k.kozlowski.k@gmail.com \
--cc=khilman@linaro.org \
--cc=linux-pm@vger.kernel.org \
--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 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).