Commit 4659b7f1 authored by Robert Lee's avatar Robert Lee Committed by Sascha Hauer

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: default avatarRobert Lee <rob.lee@linaro.org>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent de1de159
...@@ -35,7 +35,7 @@ static void imx5_idle(void) ...@@ -35,7 +35,7 @@ static void imx5_idle(void)
} }
clk_enable(gpc_dvfs_clk); clk_enable(gpc_dvfs_clk);
mx5_cpu_lp_set(WAIT_UNCLOCKED_POWER_OFF); mx5_cpu_lp_set(WAIT_UNCLOCKED_POWER_OFF);
if (tzic_enable_wake() != 0) if (!tzic_enable_wake())
cpu_do_idle(); cpu_do_idle();
clk_disable(gpc_dvfs_clk); clk_disable(gpc_dvfs_clk);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment