From: Kevin Hilman <khilman@deeprootsystems.com>
To: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH 2/2] Hook into PM counters
Date: Wed, 01 Oct 2008 14:36:24 +0300 [thread overview]
Message-ID: <87od24tumf.fsf@deeprootsystems.com> (raw)
In-Reply-To: <1222438323-14197-4-git-send-email-peter.de-schrijver@nokia.com> (Peter De Schrijver's message of "Fri\, 26 Sep 2008 17\:12\:03 +0300")
"Peter 'p2' De Schrijver" <peter.de-schrijver@nokia.com> writes:
> Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
> ---
> arch/arm/mach-omap2/clock.c | 2 ++
> arch/arm/mach-omap2/clockdomain.c | 4 ++++
> arch/arm/mach-omap2/pm34xx.c | 6 ++++++
> 3 files changed, 12 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c
> index c3af24e..dbbc7c8 100644
> --- a/arch/arm/mach-omap2/clock.c
> +++ b/arch/arm/mach-omap2/clock.c
> @@ -1013,5 +1013,7 @@ void omap2_clk_disable_unused(struct clk *clk)
>
> printk(KERN_INFO "Disabling unused clock \"%s\"\n", clk->name);
> _omap2_clk_disable(clk);
> + if (clk->clkdm.ptr != NULL)
> + pwrdm_clkdm_state_switch(clk->clkdm.ptr);
> }
> #endif
> diff --git a/arch/arm/mach-omap2/clockdomain.c b/arch/arm/mach-omap2/clockdomain.c
> index fa62f14..5249fe8 100644
> --- a/arch/arm/mach-omap2/clockdomain.c
> +++ b/arch/arm/mach-omap2/clockdomain.c
> @@ -567,6 +567,8 @@ int omap2_clkdm_clk_enable(struct clockdomain *clkdm, struct clk *clk)
> else
> omap2_clkdm_wakeup(clkdm);
>
> + pwrdm_clkdm_state_switch(clkdm);
> +
> return 0;
> }
>
> @@ -618,6 +620,8 @@ int omap2_clkdm_clk_disable(struct clockdomain *clkdm, struct clk *clk)
> else
> omap2_clkdm_sleep(clkdm);
>
> + pwrdm_clkdm_state_switch(clkdm);
> +
> return 0;
> }
>
> diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
> index a828db6..5913c4d 100644
> --- a/arch/arm/mach-omap2/pm34xx.c
> +++ b/arch/arm/mach-omap2/pm34xx.c
> @@ -170,6 +170,8 @@ static void omap_sram_idle(void)
> disable_smartreflex(SR1);
> disable_smartreflex(SR2);
>
> + pwrdm_pre_suspend();
> +
Maybe these hooks shouldn't be called "suspend" since they happen for
idle and for suspend. Maybe pwrdm_pre_transition() ?
> omap2_gpio_prepare_for_retention();
>
> _omap_sram_idle(NULL, save_state);
> @@ -179,6 +181,9 @@ static void omap_sram_idle(void)
> /* Enable smartreflex after WFI */
> enable_smartreflex(SR1);
> enable_smartreflex(SR2);
> +
> + pwrdm_post_suspend();
> +
ditto.
> }
>
> /*
> @@ -260,6 +265,7 @@ static int set_pwrdm_state(struct powerdomain *pwrdm, u32 state)
> if (sleep_switch) {
> omap2_clkdm_allow_idle(pwrdm->pwrdm_clkdms[0]);
> pwrdm_wait_transition(pwrdm);
> + pwrdm_state_switch(pwrdm);
> }
>
> err:
> --
> 1.5.6.3
>
> --
> 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-10-01 11:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-26 14:12 [PATCH 0/2] PM counters Peter 'p2' De Schrijver
2008-09-26 14:12 ` [PATCH 1/1] Hook into " Peter 'p2' De Schrijver
2008-09-26 14:12 ` [PATCH 1/2] PM counter infrastructure Peter 'p2' De Schrijver
2008-09-26 14:12 ` [PATCH 2/2] Hook into PM counters Peter 'p2' De Schrijver
2008-10-01 11:36 ` Kevin Hilman [this message]
2008-09-26 14:18 ` [PATCH 1/1] " Peter 'p2' De Schrijver
-- strict thread matches above, loose matches on Subject: below --
2008-10-01 15:48 [PATCH 0/2] " Peter 'p2' De Schrijver
2008-10-01 15:48 ` [PATCH 1/2] PM counter infrastructure Peter 'p2' De Schrijver
2008-10-01 15:48 ` [PATCH 2/2] Hook into PM counters Peter 'p2' De Schrijver
2008-10-15 14:48 [PATCH 0/2] " Peter 'p2' De Schrijver
2008-10-15 14:48 ` [PATCH 1/2] PM counter infrastructure Peter 'p2' De Schrijver
2008-10-15 14:48 ` [PATCH 2/2] Hook into PM counters Peter 'p2' De Schrijver
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=87od24tumf.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=peter.de-schrijver@nokia.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 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.