Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ddeed80 authored by Prakash Kamliya's avatar Prakash Kamliya Committed by Divya Ponnusamy
Browse files

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: default avatarPrakash Kamliya <pkamliya@codeaurora.org>
Signed-off-by: default avatarDivya Ponnusamy <pdivya@codeaurora.org>
parent ac6766f8
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1935,11 +1935,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: