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

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

Merge "smcinvoke: release lock before sleep"

parents 2bef9ce6 e8e63e2a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1322,7 +1322,9 @@ static int prepare_send_scm_msg(const uint8_t *in_buf, phys_addr_t in_paddr,

			if (ret == -EBUSY) {
				pr_err("Secure side is busy,will retry after 30 ms\n");
				mutex_unlock(&g_smcinvoke_lock);
				msleep(SMCINVOKE_SCM_EBUSY_WAIT_MS);
				mutex_lock(&g_smcinvoke_lock);
			}

		} while ((ret == -EBUSY) &&