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

Commit 6785f3e7 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Fix kgsl_clk_set_rate warning message"

parents 4cd3adec c028796f
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -504,10 +504,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)) {
@@ -516,6 +512,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;