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

Commit 823b2912 authored by Pankaj Gupta's avatar Pankaj Gupta Committed by Neeraja P
Browse files

msm: kgsl: Use regulator_is_enabled api when gpu-quirk-cx-gdsc is defined



When gpu-quirk-cx-gdsc is defined, cx_gdsc will not be disabled from
HLOS, so use regulator_is_enabled api to get the dummy status of cx_gdsc.

Change-Id: Ied2a54687d9438610116bf4a96a4843fdbc05c56
Signed-off-by: default avatarPankaj Gupta <gpankaj@codeaurora.org>
Signed-off-by: default avatarNeeraja P <neerp@codeaurora.org>
parent 38055361
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -842,6 +842,9 @@ static bool a6xx_gmu_cx_is_on(struct kgsl_device *device)
{
	unsigned int val;

	if (ADRENO_QUIRK(ADRENO_DEVICE(device), ADRENO_QUIRK_CX_GDSC))
		return regulator_is_enabled(KGSL_GMU_DEVICE(device)->cx_gdsc);

	gmu_core_regread(device, A6XX_GPU_CC_CX_GDSCR, &val);
	return (val & BIT(31));
}