Merge "smcinvoke: release lock before sleep"

This commit is contained in:
qctecmdr 2021-08-04 20:54:32 -07:00 • committed by Gerrit - the friendly Code Review server
commit c3adef29ad

View file

@ -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) &&