mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Merge "smcinvoke: release lock before sleep"
This commit is contained in:
commit
c3adef29ad
1 changed files with 2 additions and 0 deletions
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue