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

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

Revert "qseecom: decrease clk_access_cnt"



This reverts commit cfbe993d.
Keep the original bus scaling logic to prevent power issue.

Change-Id: I71d819de431bec326dc7554706a059cf82861067
Signed-off-by: default avatarZhen Kong <zkong@codeaurora.org>
parent f74668f9
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1804,17 +1804,20 @@ static int __qseecom_decrease_clk_ref_count(enum qseecom_ce_hw_instance ce)
	else
		qclk = &qseecom.ce_drv;

	if (qclk->clk_access_cnt > 0) {
		qclk->clk_access_cnt--;
	} else {
	if (qclk->clk_access_cnt > 2) {
		pr_err("Invalid clock ref count %d\n", qclk->clk_access_cnt);
		ret = -EINVAL;
		goto err_dec_ref_cnt;
	}
	if (qclk->clk_access_cnt == 2)
		qclk->clk_access_cnt--;

err_dec_ref_cnt:
	mutex_unlock(&clk_access_lock);
	return ret;
}


static int qseecom_scale_bus_bandwidth_timer(uint32_t mode)
{
	int32_t ret = 0;