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

Commit 7e39bf66 authored by Deepak Kumar's avatar Deepak Kumar
Browse files

msm: kgsl: Trigger GBIF GX halt only if GX is ON



Trigger GBIF GX halt only if GX HS is ON because GBIF
GX halt is not required if GX HS is in collapsed state.

Change-Id: If60192546d61a83a6e023f7c0323ce953f6ef3e7
Signed-off-by: default avatarDeepak Kumar <dkumar@codeaurora.org>
parent cf5aef35
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -1926,6 +1926,7 @@ static inline int adreno_vbif_clear_pending_transactions(
		 * Need to release CX Halt explicitly in case of SW_RESET.
		 * GX Halt release will be taken care by SW_RESET internally.
		 */
		if (gpudev->gx_is_on(adreno_dev)) {
			adreno_writereg(adreno_dev, ADRENO_REG_RBBM_GPR0_CNTL,
					GBIF_HALT_REQUEST);
			ret = adreno_wait_for_vbif_halt_ack(device,
@@ -1933,6 +1934,7 @@ static inline int adreno_vbif_clear_pending_transactions(
					VBIF_RESET_ACK_MASK);
			if (ret)
				return ret;
		}

		adreno_writereg(adreno_dev, ADRENO_REG_GBIF_HALT, mask);
		ret = adreno_wait_for_vbif_halt_ack(device,