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

Commit 0399b2ab authored by Kyle Piefer's avatar Kyle Piefer
Browse files

msm: kgsl: Disable slumber



Slumber is not yet supported. Stop it from
happening by lengthening the idle timeout and
preventing the open count from going to 0.

Change-Id: I08c831173684a667bd871393f4b2b027883bbd3b
Signed-off-by: default avatarKyle Piefer <kpiefer@codeaurora.org>
parent 73acf0b6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1022,6 +1022,8 @@ static int adreno_of_get_power(struct adreno_device *adreno_dev,
	if (of_property_read_u32(node, "qcom,idle-timeout", &timeout))
		timeout = 80;

	/* Force disable slumber */
	timeout = 10000000;
	device->pwrctrl.interval_timeout = msecs_to_jiffies(timeout);

	device->pwrctrl.bus_control = of_property_read_bool(node,
+3 −1
Original line number Diff line number Diff line
@@ -1059,7 +1059,6 @@ static int kgsl_close_device(struct kgsl_device *device)
	int result = 0;

	mutex_lock(&device->mutex);
	device->open_count--;
	if (device->open_count == 0) {

		/* Wait for the active count to go to 0 */
@@ -1159,6 +1158,9 @@ static int kgsl_open_device(struct kgsl_device *device)
		complete_all(&device->hwaccess_gate);
		kgsl_pwrctrl_change_state(device, KGSL_STATE_ACTIVE);
		kgsl_active_count_put(device);

		/* Do not let the device close */
		device->open_count = 1;
	}
	device->open_count++;
err: