* [PATCH 0/1] Save sram context after changing MPU, DSP or core clocks
@ 2008-11-19 11:45 Peter 'p2' De Schrijver
2008-11-19 11:45 ` [PATCH 1/1] " Peter 'p2' De Schrijver
2008-11-26 18:51 ` [PATCH 0/1] " Kevin Hilman
0 siblings, 2 replies; 5+ messages in thread
From: Peter 'p2' De Schrijver @ 2008-11-19 11:45 UTC (permalink / raw)
To: linux-omap; +Cc: Peter 'p2' De Schrijver
This patch saves the sram context again after a MPU,DSP or core clock
frequency change. This is necessary so the rom code can restore the correct
DPLL settings when resuming from off mode. Thanks to Rajendra Nayak for
suggesting the problem and coming up with the same fix at about the same time.
Peter 'p2' De Schrijver (1):
Save sram context after changing MPU, DSP or core clocks
arch/arm/mach-omap2/clock34xx.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/1] Save sram context after changing MPU, DSP or core clocks
2008-11-19 11:45 [PATCH 0/1] Save sram context after changing MPU, DSP or core clocks Peter 'p2' De Schrijver
@ 2008-11-19 11:45 ` Peter 'p2' De Schrijver
2008-12-05 9:49 ` Tero.Kristo
2008-11-26 18:51 ` [PATCH 0/1] " Kevin Hilman
1 sibling, 1 reply; 5+ messages in thread
From: Peter 'p2' De Schrijver @ 2008-11-19 11:45 UTC (permalink / raw)
To: linux-omap; +Cc: Peter 'p2' De Schrijver
Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
---
arch/arm/mach-omap2/clock34xx.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c
index d97d5a9..962ce56 100644
--- a/arch/arm/mach-omap2/clock34xx.c
+++ b/arch/arm/mach-omap2/clock34xx.c
@@ -911,6 +911,9 @@ printk("%s set to %luHz intended rate %luHz\n",dpll2_clk->name,clk_get_rate(dpll
clk_set_rate(dpll3_clk, prcm_vdd->rate);
curr_vdd2_prcm_set = prcm_vdd;
}
+
+ omap3_save_scratchpad_contents();
+
return 0;
}
--
1.5.6.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/1] Save sram context after changing MPU, DSP or core clocks
2008-11-19 11:45 [PATCH 0/1] Save sram context after changing MPU, DSP or core clocks Peter 'p2' De Schrijver
2008-11-19 11:45 ` [PATCH 1/1] " Peter 'p2' De Schrijver
@ 2008-11-26 18:51 ` Kevin Hilman
1 sibling, 0 replies; 5+ messages in thread
From: Kevin Hilman @ 2008-11-26 18:51 UTC (permalink / raw)
To: Peter 'p2' De Schrijver; +Cc: linux-omap
"Peter 'p2' De Schrijver" <peter.de-schrijver@nokia.com> writes:
> This patch saves the sram context again after a MPU,DSP or core clock
> frequency change. This is necessary so the rom code can restore the correct
> DPLL settings when resuming from off mode. Thanks to Rajendra Nayak for
> suggesting the problem and coming up with the same fix at about the same time.
>
Thanks, pulling into next PM branch.
Kevin
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH 1/1] Save sram context after changing MPU, DSP or core clocks
2008-11-19 11:45 ` [PATCH 1/1] " Peter 'p2' De Schrijver
@ 2008-12-05 9:49 ` Tero.Kristo
2008-12-05 11:16 ` Peter 'p2' De Schrijver
0 siblings, 1 reply; 5+ messages in thread
From: Tero.Kristo @ 2008-12-05 9:49 UTC (permalink / raw)
To: linux-omap, Peter.De-Schrijver
Hi Peter,
This patch causes linker error without CONFIG_PM option, should add
#ifdef:s around the call to omap3_save_scratchpad_contents();
-Tero
>-----Original Message-----
>From: linux-omap-owner@vger.kernel.org
>[mailto:linux-omap-owner@vger.kernel.org] On Behalf Of ext
>Peter 'p2' De Schrijver
>Sent: 19 November, 2008 13:45
>To: linux-omap@vger.kernel.org
>Cc: De-Schrijver Peter (Nokia-D/Helsinki)
>Subject: [PATCH 1/1] Save sram context after changing MPU, DSP
>or core clocks
>
>
>Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
>---
> arch/arm/mach-omap2/clock34xx.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
>diff --git a/arch/arm/mach-omap2/clock34xx.c
>b/arch/arm/mach-omap2/clock34xx.c index d97d5a9..962ce56 100644
>--- a/arch/arm/mach-omap2/clock34xx.c
>+++ b/arch/arm/mach-omap2/clock34xx.c
>@@ -911,6 +911,9 @@ printk("%s set to %luHz intended rate
>%luHz\n",dpll2_clk->name,clk_get_rate(dpll
> clk_set_rate(dpll3_clk, prcm_vdd->rate);
> curr_vdd2_prcm_set = prcm_vdd;
> }
>+
>+ omap3_save_scratchpad_contents();
>+
> return 0;
> }
>
>--
>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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] Save sram context after changing MPU, DSP or core clocks
2008-12-05 9:49 ` Tero.Kristo
@ 2008-12-05 11:16 ` Peter 'p2' De Schrijver
0 siblings, 0 replies; 5+ messages in thread
From: Peter 'p2' De Schrijver @ 2008-12-05 11:16 UTC (permalink / raw)
To: Kristo Tero (Nokia-D/Tampere); +Cc: linux-omap
On Fri, Dec 05, 2008 at 11:49:03AM +0200, Kristo Tero (Nokia-D/Tampere) wrote:
> Hi Peter,
>
> This patch causes linker error without CONFIG_PM option, should add
> #ifdef:s around the call to omap3_save_scratchpad_contents();
>
That looks a bit ugly though :(
Cheers,
Peter
--
goa is a state of mind
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-05 11:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-19 11:45 [PATCH 0/1] Save sram context after changing MPU, DSP or core clocks Peter 'p2' De Schrijver
2008-11-19 11:45 ` [PATCH 1/1] " Peter 'p2' De Schrijver
2008-12-05 9:49 ` Tero.Kristo
2008-12-05 11:16 ` Peter 'p2' De Schrijver
2008-11-26 18:51 ` [PATCH 0/1] " Kevin Hilman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox