From: jouni.hogander@nokia.com (Högander Jouni)
To: ext Rajendra Nayak <rnayak@ti.com>
Cc: linux-omap@vger.kernel.org, ext Paul Walmsley <paul@pwsan.com>
Subject: Re: [PATCH 04/10] OMAP3 SRF: OMAP PM srf implementation
Date: Wed, 13 Aug 2008 11:52:44 +0300 [thread overview]
Message-ID: <87y73147qb.fsf@trdhcp146196.ntc.nokia.com> (raw)
In-Reply-To: <00d701c8fd1e$1716b730$LocalHost@wipultra1382> (ext Rajendra Nayak's message of "Wed, 13 Aug 2008 13:55:03 +0530")
"ext Rajendra Nayak" <rnayak@ti.com> writes:
>
>
>> -----Original Message-----
>> From: "Högander" Jouni [mailto:jouni.hogander@nokia.com]
>> Sent: Wednesday, August 13, 2008 12:47 PM
>> To: ext Rajendra Nayak
>> Cc: linux-omap@vger.kernel.org
>> Subject: Re: [PATCH 04/10] OMAP3 SRF: OMAP PM srf implementation
>>
>> Hello Rajendra,
>>
>> "ext Rajendra Nayak" <rnayak@ti.com> writes:
>>
>> > +/*
>> > + * Powerdomain usecounting hooks
>> > + */
>> > +
>> > +void omap_pm_pwrdm_active(struct powerdomain *pwrdm) {
>> > + char *res_name;
>> > +
>> > + if (!pwrdm) {
>> > + WARN_ON(1);
>> > + return;
>> > + };
>> > +
>> > + if (!strcmp(pwrdm->name, "wkup_pwrdm") ||
>> > + !strcmp(pwrdm->name, "core_pwrdm"))
>> > + return;
>> > +
>> > + pr_debug("OMAP PM: powerdomain %s is becoming active\n",
>> > +pwrdm->name);
>> > +
>> > + res_name = get_lat_res_name(pwrdm->name);
>> > + /* Request for a zero latency which puts the Power
>> Domain in ON state*/
>> > + resource_request(res_name, &omap_pm_dev, 0);
>> > + return;
>> > +}
>> > +
>> > +void omap_pm_pwrdm_inactive(struct powerdomain *pwrdm) {
>> > + char *res_name;
>> > +
>> > + if (!pwrdm) {
>> > + WARN_ON(1);
>> > + return;
>> > + };
>> > +
>> > + if (!strcmp(pwrdm->name, "wkup_pwrdm") ||
>> > + !strcmp(pwrdm->name, "core_pwrdm"))
>> > + return;
>> > +
>> > + pr_debug("OMAP PM: powerdomain %s is becoming inactive\n",
>> > + pwrdm->name);
>> > +
>> > + res_name = get_lat_res_name(pwrdm->name);
>> > + /* Release the latency requested */
>> > + resource_release(res_name, &omap_pm_dev);
>> > + return;
>> > +}
>>
>> For what these two functions are? Why they are
>> requesting/releasing resource?
>
> Its needed so that a power domain is turned ON while the first clock node in it is
> requested, and turned OFF while the last clock node is disabled.
Isn't this already taken care by clock framework? If not I think it
should be. I mean directly requesting domain to wakeup rather than
requesting resource which causes it to wakeup.
Paul, Any comment on this?
>
>>
>> > +
>> > +/*
>> > + * Should be called before clk framework since clk fw will call
>> > + * omap_pm_pwrdm_{in,}active()
>> > + */
>> > +int __init omap_pm_if_early_init(void) {
>> > + return 0;
>> > +}
>>
>> Why clock framework (omap2_clkdm_clk_enable/disable) is
>> calling omap_pm_pwrdm_{in,}active()? Is it for keeping track
>> of OFF transitions?
>
> This is for clockdomain layer to indicate that a powerdomain should
> wake up or be put to sleep
Same comment as above.
--
Jouni Högander
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-08-13 8:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-11 13:07 [PATCH 04/10] OMAP3 SRF: OMAP PM srf implementation Rajendra Nayak
2008-08-13 7:16 ` Högander Jouni
2008-08-13 8:25 ` Rajendra Nayak
2008-08-13 8:52 ` Högander Jouni [this message]
2008-08-15 7:46 ` Paul Walmsley
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=87y73147qb.fsf@trdhcp146196.ntc.nokia.com \
--to=jouni.hogander@nokia.com \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=rnayak@ti.com \
/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