All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rajendra Nayak" <rnayak@ti.com>
To: "'\"Högander\" Jouni'" <jouni.hogander@nokia.com>
Cc: linux-omap@vger.kernel.org
Subject: RE: [PATCH 04/10] OMAP3 SRF: OMAP PM srf implementation
Date: Wed, 13 Aug 2008 13:55:03 +0530	[thread overview]
Message-ID: <00d701c8fd1e$1716b730$LocalHost@wipultra1382> (raw)
In-Reply-To: <87bpzx5qqx.fsf@trdhcp146196.ntc.nokia.com>

 

> -----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.

>  
> > +
> > +/*
> > + * 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

> 
> --
> 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

  reply	other threads:[~2008-08-13  8:25 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 [this message]
2008-08-13  8:52     ` Högander Jouni
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='00d701c8fd1e$1716b730$LocalHost@wipultra1382' \
    --to=rnayak@ti.com \
    --cc=jouni.hogander@nokia.com \
    --cc=linux-omap@vger.kernel.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.