From: Robert Lee Date: Mon, 16 Apr 2012 23:37:48 +0000 (-0500) Subject: ARM: imx: Fix imx5 idle logic bug X-Git-Tag: v3.4-rc4~2^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4659b7f1fa3eb33a8f9a9dd209a5823602dc6dcf;p=profile%2Fcommon%2Fkernel-common.git ARM: imx: Fix imx5 idle logic bug The imx5_idle() check of the tzic_eanble_wake() return value uses incorrect (inverted) logic causing all attempt to idle to fail. Signed-off-by: Robert Lee Signed-off-by: Sascha Hauer --- diff --git a/arch/arm/mach-imx/mm-imx5.c b/arch/arm/mach-imx/mm-imx5.c index 05250ae..e10f391 100644 --- a/arch/arm/mach-imx/mm-imx5.c +++ b/arch/arm/mach-imx/mm-imx5.c @@ -35,7 +35,7 @@ static void imx5_idle(void) } clk_enable(gpc_dvfs_clk); mx5_cpu_lp_set(WAIT_UNCLOCKED_POWER_OFF); - if (tzic_enable_wake() != 0) + if (!tzic_enable_wake()) cpu_do_idle(); clk_disable(gpc_dvfs_clk); }