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

Commit 2641b830 authored by Zhen Kong's avatar Zhen Kong
Browse files

qseecom: use scm_call2 when bus_scaling is enabled



smcinvoke is not enabled on low-tier targets that need HLOS
to scale bus bandwidth explicitly, so it can still use
scm_call2 and then keep original bus scaling logic to avoid
bus scaling regression issue.

Change-Id: I3484109b58d1023e8732bf7f08a485b78f18ef65
Signed-off-by: default avatarZhen Kong <zkong@codeaurora.org>
parent c2f42e63
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -460,6 +460,9 @@ static int __qseecom_scm_call2_locked(uint32_t smc_id, struct scm_desc *desc)
	int ret = 0;
	int retry_count = 0;

	if (qseecom.support_bus_scaling)
		return scm_call2(smc_id, desc);

	do {
		ret = scm_call2_noretry(smc_id, desc);
		if (ret == -EBUSY) {