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:
Saikiran Muppidi
2022-04-21 13:06:07 +05:30
parent 286149f56c
commit 8b983d980f

View File

@@ -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;