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

Commit a4cec09c authored by Zhen Kong's avatar Zhen Kong
Browse files

qseecom: change bus scale up mode in resume function



The maximum bus bandwidth mode supported by bus bandwidth setting
function is 3 (i.e., HIGH), then to scale up bus bandwidth based on
cumulative mode may prevent us from updating the bus bandwidth
correctly when cumulative mode is greater than 3 (which is the case
if there are concurrent applications running). Thus, we made a
change to scale up bus bandwidth mode to at most 3 in qseecom
resume function.

Change-Id: I3ec6eedace2fa2ea7de519df307c3ff9b193c910
Signed-off-by: default avatarZhen Kong <zkong@codeaurora.org>
parent bfaea932
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -4646,10 +4646,9 @@ static int qseecom_resume(struct platform_device *pdev)

	if (qseecom.cumulative_mode != INACTIVE) {
		ret = msm_bus_scale_client_update_request(
			qseecom.qsee_perf_client, qseecom.cumulative_mode);
			qseecom.qsee_perf_client, mode);
		if (ret)
			pr_err("Fail to scale up bus to %d\n",
				qseecom.cumulative_mode);
			pr_err("Fail to scale up bus to %d\n", mode);
	}

	mutex_lock(&clk_access_lock);