From 48d0211da05ca58820176e996bd396dbf02fb595 Mon Sep 17 00:00:00 2001 From: Suman Tatiraju Date: Mon, 9 Sep 2013 12:49:34 -0700 Subject: [PATCH] msm: kgsl: Turn on GPU clock before setting the control flag Make sure the GPU clocks are turned on before the control flag is set, otherwise the clocks can never be turned on afterwards. Change-Id: I44458e11ae09ae2499c7c2d5334e5acd43261756 Signed-off-by: Suman Tatiraju --- drivers/gpu/msm/adreno.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/msm/adreno.c b/drivers/gpu/msm/adreno.c index d8e5559dc47..745660a9828 100644 --- a/drivers/gpu/msm/adreno.c +++ b/drivers/gpu/msm/adreno.c @@ -2187,6 +2187,8 @@ static int adreno_setproperty(struct kgsl_device *device, adreno_dev->fast_hang_detect = 1; kgsl_pwrscale_enable(device); } else { + kgsl_pwrctrl_wake(device); + device->pwrctrl.ctrl_flags = KGSL_PWR_ON; adreno_dev->fast_hang_detect = 0; kgsl_pwrscale_disable(device); }