OSDN Git Service

firmware: qcom_scm-64: Move SMC register filling to qcom_scm_call_smccc
authorElliot Berman <eberman@codeaurora.org>
Tue, 7 Jan 2020 21:04:16 +0000 (13:04 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 8 Jan 2020 06:14:17 +0000 (22:14 -0800)
commit3f951ea627dae878e353c51dfeb10baaccb10101
tree783ee3459d008d1c45056f808b6e82d3ac1b534c
parent1f7166fdae55b52803d1f381e017ecbd45142a2d
firmware: qcom_scm-64: Move SMC register filling to qcom_scm_call_smccc

qcom_scm_call_smccc should be responsible for converting qcom_scm_desc
into arguments for smc call. Consolidate the dispersed logic to convert
qcom_scm_desc into smc arguments inside qcom_scm_call_smccc.

Tested-by: Brian Masney <masneyb@onstation.org> # arm32
Tested-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
Link: https://lore.kernel.org/r/1578431066-19600-8-git-send-email-eberman@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/firmware/qcom_scm-64.c