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

Commit f1823039 authored by Chandan Kumar Jha's avatar Chandan Kumar Jha
Browse files

msm: camera: cpas: Setting the vote level on max supported clock lvl basis



In Some targets number of use cases are 7 and it was an issue during
setting TURBO clock level.

Changed the validation from number of client usecase to MAX supported
clock level.

CRs-Fixed: 2571273
Change-Id: I05cd06ff11c2c43eb4b70d69314e04055894c5fc
Signed-off-by: default avatarChandan Kumar Jha <cjha@codeaurora.org>
parent 526970e7
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -122,6 +122,14 @@ static int cam_cpas_util_vote_bus_client_level(
		goto end;
	}

	if (level >= CAM_MAX_VOTE) {
		CAM_ERR(CAM_CPAS,
			"Invalid votelevel=%d,usecases=%d,Bus client=[%s]",
			level, bus_client->common_data.num_usecases,
			bus_client->common_data.name);
		return -EINVAL;
	}

	if (level == bus_client->curr_vote_level)
		goto end;