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 <sumant@codeaurora.org>
This commit is contained in:
Suman Tatiraju
2013-09-09 12:49:34 -07:00
committed by Iliyan Malchev
parent 89483ce81c
commit 48d0211da0

View File

@@ -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);
}