OSDN Git Service

firmware: qcom_scm-32: Move SMCCC register filling to qcom_scm_call
authorElliot Berman <eberman@codeaurora.org>
Tue, 7 Jan 2020 21:04:21 +0000 (13:04 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 8 Jan 2020 06:14:29 +0000 (22:14 -0800)
commit590e92809a58a5de93079e4948b75e6a4832187c
tree0c291c35e0418432b2c8d0f3c81fb6ff2823bb4c
parentefd2b15c21a04367594685093af3ef2567923bbc
firmware: qcom_scm-32: Move SMCCC register filling to qcom_scm_call

Move SMCCC register filling to qcom_scm_call so that __scm_legacy_do
only needs to concern itself with retry mechanism. qcom_scm_call then is
responsible for translating qcom_scm_desc into the complete set of
register arguments and passing onto qcom_scm_call_do.

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-13-git-send-email-eberman@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/firmware/qcom_scm-32.c