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

Commit ed9b07dd authored by Reut Zysman's avatar Reut Zysman Committed by Gerrit - the friendly Code Review server
Browse files

qseecom: Fix MDTP cipher DIP



Enable CE clocks before calling SCM. This is required to
check if MDTP is activated during recovery and to update the DIP
as required in case it is.

Change-Id: I01907d7cebae007c7f6a33d4bf29b3e4fc6e493c
Signed-off-by: default avatarReut Zysman <rzysman@codeaurora.org>
Signed-off-by: default avatarAmit Blay <ablay@codeaurora.org>
parent d171201f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -5538,7 +5538,12 @@ static int qseecom_mdtp_cipher_dip(void __user *argp)
		desc.args[3] = req.out_buf_size;
		desc.args[4] = req.direction;

		__qseecom_enable_clk(CLK_QSEE);

		ret = scm_call2(TZ_MDTP_CIPHER_DIP_ID, &desc);

		__qseecom_disable_clk(CLK_QSEE);

		if (ret) {
			pr_err("scm_call2 failed for SCM_SVC_MDTP, ret=%d\n",
				ret);