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

Commit f06d358d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Decrease requirements to access SPTP regs" into msm-4.9

parents 0455ec27 51dc0147
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -810,7 +810,7 @@ static int a6xx_sptprac_enable(struct adreno_device *adreno_dev)
	struct kgsl_device *device = KGSL_DEVICE(adreno_dev);
	struct kgsl_device *device = KGSL_DEVICE(adreno_dev);
	struct gmu_device *gmu = &device->gmu;
	struct gmu_device *gmu = &device->gmu;


	if (!kgsl_gmu_isenabled(device))
	if (!gmu->pdev)
		return -EINVAL;
		return -EINVAL;


	kgsl_gmu_regwrite(device, A6XX_GMU_GX_SPTPRAC_POWER_CONTROL,
	kgsl_gmu_regwrite(device, A6XX_GMU_GX_SPTPRAC_POWER_CONTROL,
@@ -837,7 +837,7 @@ static void a6xx_sptprac_disable(struct adreno_device *adreno_dev)
	struct kgsl_device *device = KGSL_DEVICE(adreno_dev);
	struct kgsl_device *device = KGSL_DEVICE(adreno_dev);
	struct gmu_device *gmu = &device->gmu;
	struct gmu_device *gmu = &device->gmu;


	if (!kgsl_gmu_isenabled(device))
	if (!gmu->pdev)
		return;
		return;


	kgsl_gmu_regwrite(device, A6XX_GMU_GX_SPTPRAC_POWER_CONTROL,
	kgsl_gmu_regwrite(device, A6XX_GMU_GX_SPTPRAC_POWER_CONTROL,