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

Commit cce088b1 authored by Neeraj Soni's avatar Neeraj Soni
Browse files

security: pfe: Disable clocks for crypto engine



Even if invalidate key scm call is failed crypto
engine clocks should be disabled as fresh set key
call will any way enable clocks again. This will
also help in power savings.

Change-Id: I640150228112a3d36f49cb52a7de0df6cc6a4662
Signed-off-by: default avatarNeeraj Soni <neersoni@codeaurora.org>
parent 7d5af490
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -138,9 +138,10 @@ int qti_pfk_ice_set_key(uint32_t index, uint8_t *key, uint8_t *salt,
		if (ret1)
			pr_err("%s: Invalidate Key Error: %d\n", __func__,
					ret1);
		goto out;
	}
	ret = qcom_ice_setup_ice_hw((const char *)s_type, false);
	ret1 = qcom_ice_setup_ice_hw((const char *)s_type, false);
	if (ret1)
		pr_err("%s: Error %d disabling clocks\n", __func__, ret1);

out:
	return ret;