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: Pankaj Gupta <gpankaj@codeaurora.org>
tirimbino
Pankaj Gupta 5 years ago
parent b2171caf75
commit 38cad2c8ac
  1. 3
      drivers/gpu/msm/adreno_a6xx_gmu.c

@ -837,6 +837,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));
}

Loading…
Cancel
Save