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

Commit 5344e5c7 authored by Deepak Kumar's avatar Deepak Kumar
Browse files

msm: kgsl: Do not change active_pwrlevel while entering SLUMBER



Active power level shouldn't be set to level corresponding to XO
clock while entering SLUMBER. Any change in active_power level
should happen from kgsl_pwrctrl_pwrlevel_change and it should
always be less than or equal to min_pwrlevel and greater than
or equal to max_pwrlevel.

Change-Id: I8b7013a6cea7544e220026b59ea5405377509f18
Signed-off-by: default avatarDeepak Kumar <dkumar@codeaurora.org>
parent 099e9fc7
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -2485,9 +2485,6 @@ static int kgsl_pwrctrl_enable(struct kgsl_device *device)
static void kgsl_pwrctrl_disable(struct kgsl_device *device)
{
	if (kgsl_gmu_isenabled(device)) {
		struct kgsl_pwrctrl *pwr = &device->pwrctrl;

		pwr->active_pwrlevel = pwr->num_pwrlevels - 1;
		kgsl_pwrctrl_axi(device, KGSL_PWRFLAGS_OFF);
		return gmu_stop(device);
	}