From 078f9dd92e4e9bd97fa610bdee4f1bfb55cdc7c1 Mon Sep 17 00:00:00 2001 From: "xia.jin" Date: Mon, 10 Jul 2023 13:55:25 +0800 Subject: [PATCH] Dolby: run MS12 and HA at the same time [2/2] PD#RSP-4361 Problem: un MS12 and HA at the same time Solution: 1 use smc call x3 to parse MS12 or HA in bl31 2 use dolby_fw_args->x3 to parse MS12 or HA in kernel Verify: t3/t7 Change-Id: I79ccf4a629177efccc03ab9c5878e390ec19dd53 Signed-off-by: xia.jin --- drivers/secmon/dolby_fw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/secmon/dolby_fw.c b/drivers/secmon/dolby_fw.c index 120fd2adb..cb34611c5 100644 --- a/drivers/secmon/dolby_fw.c +++ b/drivers/secmon/dolby_fw.c @@ -226,7 +226,7 @@ static int dolby_fw_verify(struct dolby_fw_args *info) __func__, __LINE__); goto err2; } - ret = dolby_fw_smc_call(DOLBY_FW_VERIFY_CRITICAL, info->arg2, 0, 0); + ret = dolby_fw_smc_call(DOLBY_FW_VERIFY_CRITICAL, info->arg2, 0, info->arg3); if (ret) { pr_err("%s:%d: verify critical fail!\n", __func__, __LINE__); @@ -289,7 +289,7 @@ static int dolby_fw_verify_lib_resp(struct dolby_fw_args *info) __func__, __LINE__); goto err1; } - ret = dolby_fw_smc_call(DOLBY_FW_VERIFY_LIB_RESP, 0, 0, 0); + ret = dolby_fw_smc_call(DOLBY_FW_VERIFY_LIB_RESP, 0, 0, info->arg3); if (ret) { pr_err("%s:%d: verify lib resp fail %d!\n", __func__, __LINE__, ret); @@ -381,7 +381,7 @@ static int dolby_fw_critical_query(struct dolby_fw_args *info) } size = dolby_fw_smc_call(DOLBY_FW_CRITICAL_DATA_QUERY, - info->src_len, 0, 0); + info->src_len, 0, info->arg3); if (!size) { pr_err("%s:%d: query critical fail!\n", __func__, __LINE__);