aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2011-01-10 22:05:00 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2011-01-10 22:05:00 -0800
commitb642a9f9e5085ade5b3d37ea1d0f759c66d51a0d (patch)
treede978efb067126d3460fc689c6d3f5cfae62db28
parenta10e8c46fb8efaa92de0ab47b0eac16923cba3c0 (diff)
downloadmrst-s0i3-test-new-s0i3-2.tar.gz
mrst-s0i3-test-new-s0i3-2.tar.xz
mrst-s0i3-test-new-s0i3-2.zip
s0i3: Make sure the PMU is idle before issuing the *initial* commandnew-s0i3-2
If the PMU somehow is occupied we could otherwise miss a command.
-rw-r--r--drivers/idle/mrst_s0i3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/idle/mrst_s0i3.c b/drivers/idle/mrst_s0i3.c
index 30e39226651..6dc37d8b5bc 100644
--- a/drivers/idle/mrst_s0i3.c
+++ b/drivers/idle/mrst_s0i3.c
@@ -449,6 +449,7 @@ static int __init s0i3_prepare(void)
pmu_reg = pmu;
/* Enable auto clockgating for the south complex (Langwell) */
+ s0i3_wait_for_pmu();
writel(AUTO_CLK_GATE_VALUE, &pmu_reg->pm_ssc[0]);
writel(0x201, &pmu_reg->pm_cmd);