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

Commit 6c70cd86 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Reset the bus_mod value when power is re-enabled



kgsl_pwrctrl_pwrlevel_change() resets the bus_mod level when the
power level is changed but the power level doesn't get changed
on re-init if constraints are enabled with the net effect of
turning on the bus at a lower level than we would expect.  Reset
bus_mod in  kgsl_pwrctrl_enable() to make sure it always comes
up at the expected level.

Change-Id: Ic0dedbad303cc938d91583b3e3309d232590b975
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 6f5f7ff4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1492,6 +1492,8 @@ int kgsl_pwrctrl_enable(struct kgsl_device *device)
	} else
		level = pwr->default_pwrlevel;

	pwr->bus_mod = 0;

	if (pwr->constraint.type == KGSL_CONSTRAINT_NONE)
		kgsl_pwrctrl_pwrlevel_change(device, level);