[PATCH] mx5: modify pm and idle
From: Hui Wang <hidden>
Date: 2011-10-08 01:33:56
Shawn Guo wrote:
On Fri, Sep 30, 2011 at 02:37:22PM +0800, Hui Wang wrote:quoted
Two problems exist in the current i.MX5 pm suspend/resume and idle functions. The first is the current i.MX5 suspend routine will call
<snip>
quoted
MPGC1_SRPGCR); } } + +void mx5_arch_idle(void) +{ + if (gpc_dvfs_clk == NULL) + gpc_dvfs_clk = clk_get(NULL, "gpc_dvfs"); + + /* gpc clock is needed for SRPG */ + clk_enable(gpc_dvfs_clk); + mx5_cpu_lp_set(WAIT_UNCLOCKED_POWER_OFF); + if (tzic_enable_wake() != 0) + goto exit; + cpu_do_idle(); +exit: + clk_disable(gpc_dvfs_clk);Bad indentation on entire function block (should be 1 tab rather than 2) Regards, Shawn
Got it. I will fix it in the V2.
quoted
+}diff --git a/arch/arm/plat-mxc/include/mach/mxc.h b/arch/arm/plat-mxc/include/mach/mxc.h index 0987923..c4d324a 100644 --- a/arch/arm/plat-mxc/include/mach/mxc.h +++ b/arch/arm/plat-mxc/include/mach/mxc.h@@ -182,7 +182,7 @@ struct cpu_op { u32 cpu_rate; };