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

Commit 12d2aa76 authored by Carter Cooper's avatar Carter Cooper
Browse files

msm: kgsl: Disable interrupts before stopping HFI



Disable interrupts to ensure no new interrupts come
in while trying to stop HFI.

Change-Id: I2291730c0afc9817e09781da9be020a4dbb7b9f3
Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent b98e655c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1508,9 +1508,8 @@ static int gmu_suspend(struct kgsl_device *device)
		return 0;

	/* Pending message in all queues are abandoned */
	hfi_stop(gmu);
	clear_bit(GMU_HFI_ON, &gmu->flags);
	gmu_dev_ops->irq_disable(device);
	hfi_stop(gmu);

	if (gmu_dev_ops->rpmh_gpu_pwrctrl(adreno_dev, GMU_SUSPEND, 0, 0))
		return -EINVAL;
@@ -1681,9 +1680,8 @@ static void gmu_stop(struct kgsl_device *device)
		goto error;

	/* Pending message in all queues are abandoned */
	hfi_stop(gmu);
	clear_bit(GMU_HFI_ON, &gmu->flags);
	gmu_dev_ops->irq_disable(device);
	hfi_stop(gmu);

	gmu_dev_ops->rpmh_gpu_pwrctrl(adreno_dev, GMU_FW_STOP, 0, 0);
	gmu_disable_clks(gmu);