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

Commit 91c672d7 authored by Hareesh Gundu's avatar Hareesh Gundu
Browse files

msm: kgsl: Do not disable rgmu irq twice on error case



During the GPU wakeup sequence if GMU_FAULT is set
we change the state to RESET to ensure rgmu_suspend()
called to recover from GMU_FAULT. We already have
the disable irq in rgmu_suspend(), So don’t disable irq
on rgmu error case.

Change-Id: I19f111195ebb01633899320e77c23689357d8852
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
parent 681f798f
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -312,7 +312,6 @@ static void rgmu_stop(struct kgsl_device *device)
	 * that hang recovery is needed to power on GPU
	 */
	set_bit(GMU_FAULT, &device->gmu_core.flags);
	gmu_dev_ops->irq_disable(device);
	rgmu_snapshot(device);
}

@@ -447,7 +446,6 @@ static int rgmu_start(struct kgsl_device *device)

error_rgmu:
	set_bit(GMU_FAULT, &device->gmu_core.flags);
	gmu_dev_ops->irq_disable(device);
	rgmu_snapshot(device);
	return ret;
}
@@ -489,4 +487,5 @@ struct gmu_core_ops rgmu_ops = {
	.dcvs_set = rgmu_dcvs_set,
	.snapshot = rgmu_snapshot,
	.regulator_isenabled = rgmu_regulator_isenabled,
	.suspend = rgmu_suspend,
};