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

Commit c028796f authored by Hareesh Gundu's avatar Hareesh Gundu
Browse files

msm: kgsl: Fix kgsl_clk_set_rate warning message



XO clock set rate is not allowed for gmu, which is
being requested from the kgsl_pwrctrl_init(). Move
GMU_HFI_ON check in gmu_dcvs_set(),  So that XO
clock set rate request is ignored.

Change-Id: I44db8b3fde8dd7bbd1167daa4f2198b710d54a64
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
parent 77880ea2
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -512,10 +512,6 @@ static int gmu_dcvs_set(struct kgsl_device *device,
		.bw = INVALID_DCVS_IDX,
	};

	/* Do not set to XO and lower GPU clock vote from GMU */
	if ((gpu_pwrlevel != INVALID_DCVS_IDX) &&
			(gpu_pwrlevel >= gmu->num_gpupwrlevels - 1))
		return -EINVAL;

	/* If GMU has not been started, save it */
	if (!test_bit(GMU_HFI_ON, &device->gmu_core.flags)) {
@@ -524,6 +520,11 @@ static int gmu_dcvs_set(struct kgsl_device *device,
		return 0;
	}

	/* Do not set to XO and lower GPU clock vote from GMU */
	if ((gpu_pwrlevel != INVALID_DCVS_IDX) &&
			(gpu_pwrlevel >= gmu->num_gpupwrlevels - 1))
		return -EINVAL;

	if (gpu_pwrlevel < gmu->num_gpupwrlevels - 1)
		req.freq = gmu->num_gpupwrlevels - gpu_pwrlevel - 1;