From cba75499387052c1c289f08f37862483df382e55 Mon Sep 17 00:00:00 2001 From: Rohith Kollalsi Date: Mon, 8 Mar 2021 16:00:02 +0530 Subject: [PATCH] firmware: Fix the failure of scm call to update LVL_SHIFTER register Currently only one argument is being passed in scm_call to update LVL_SHIFTER register, but tz side expects two arguments to be passed. This is leading to scm call failure. So fix this by adding another argument and initializing it to zero which has no operation to perform. Change-Id: Ibe5b4a1635d58102b747926db65677251186ccba Signed-off-by: Rohith Kollalsi --- drivers/firmware/qcom_scm-smc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/firmware/qcom_scm-smc.c b/drivers/firmware/qcom_scm-smc.c index c4253f2b38f3..9ae4bb9630b7 100644 --- a/drivers/firmware/qcom_scm-smc.c +++ b/drivers/firmware/qcom_scm-smc.c @@ -1060,7 +1060,8 @@ void __qcom_scm_phy_update_scm_level_shifter(struct device *dev, u32 val) }; desc.args[0] = val; - desc.arginfo = QCOM_SCM_ARGS(1); + desc.args[1] = 0; + desc.arginfo = QCOM_SCM_ARGS(2); ret = qcom_scm_call(dev, &desc); if (ret)