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

Commit 8b983d98 authored by Saikiran Muppidi's avatar Saikiran Muppidi
Browse files

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: default avatarSaikiran Muppidi <quic_saikmupp@quicinc.com>
parent 286149f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;