soc: qcom: Add retry mechanism to encryption related Secure Monitor calls
SCM calls used for File Based Encryption are using no retry mechanism currently, but when TZ is busy, the scm calls could fail. replaced scm call to avoid failure. Test: build compilation successful and tested by customer. Change-Id: I5de4f5f63895cfaadeff2ff8651efcc229850a94 Signed-off-by: Saikiran Muppidi <quic_saikmupp@quicinc.com>
This commit is contained in:
@@ -126,7 +126,7 @@ int crypto_qti_tz_raw_secret(const u8 *wrapped_key,
|
||||
memset(shm_secret.vaddr, 0, secret_size);
|
||||
dmac_flush_range(shm_secret.vaddr, shm_secret.vaddr + secret_size);
|
||||
|
||||
err = scm_call2_noretry(smc_id, &desc);
|
||||
err = scm_call2(smc_id, &desc);
|
||||
if (err) {
|
||||
pr_err("%s failed to retrieve raw secret\n", __func__, err);
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user