msm: kgsl: Fix state transition action from deep_nap state

Deep nap removes the quality of service latency vote. Restore device
before powering back the GPU while coming out of deep nap.

Change-Id: I9366ffa6f5f2768cb3ea10f9117678ba8cf8d190
Signed-off-by: Prakash Kamliya <pkamliya@codeaurora.org>
Signed-off-by: Divya Ponnusamy <pdivya@codeaurora.org>
This commit is contained in:
Prakash Kamliya 2015-10-14 11:22:59 +05:30 committed by David Keitel
parent 56ed9e43b7
commit f5d225e2ff

View file

@ -1982,11 +1982,14 @@ static int _init(struct kgsl_device *device)
{
int status = 0;
switch (device->state) {
case KGSL_STATE_NAP:
case KGSL_STATE_DEEP_NAP:
case KGSL_STATE_SLEEP:
pm_qos_update_request(&device->pwrctrl.pm_qos_req_dma,
device->pwrctrl.pm_qos_active_latency);
/* Get the device out of retention */
kgsl_pwrctrl_retention_clk(device, KGSL_PWRFLAGS_ON);
/* fall through */
case KGSL_STATE_NAP:
case KGSL_STATE_SLEEP:
/* Force power on to do the stop */
status = kgsl_pwrctrl_enable(device);
case KGSL_STATE_ACTIVE: