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

Commit efea1729 authored by Pankaj Gupta's avatar Pankaj Gupta Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Allow state transition to nap from valid states



Currently transitions to nap state from active, slumber or aware
are not permitted. This fix allows transition from active or slumber
to nap state.

Change-Id: I889c050fb7042fefcab40ea4fa84efabef2149e8
Signed-off-by: default avatarPankaj Gupta <gpankaj@codeaurora.org>
parent e21e0743
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1869,6 +1869,7 @@ _nap(struct kgsl_device *device)
		kgsl_pwrctrl_set_state(device, KGSL_STATE_NAP);
		/* fallthrough */
	case KGSL_STATE_SLUMBER:
		break;
	case KGSL_STATE_AWARE:
		dev_warn(device->dev,
			"transition AWARE -> NAP is not permitted\n");