OSDN Git Service

firmware: qcom_scm-64: Improve SMC convention detection
authorElliot Berman <eberman@codeaurora.org>
Tue, 7 Jan 2020 21:04:17 +0000 (13:04 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 8 Jan 2020 06:14:19 +0000 (22:14 -0800)
commit5dad8deee29b7a64854e8bceb90337fa4db610de
tree898a7a4e4eddd8bccb3ff6b9a08d6e490a85a91f
parent3f951ea627dae878e353c51dfeb10baaccb10101
firmware: qcom_scm-64: Improve SMC convention detection

Improve the calling convention detection to use
__qcom_scm_is_call_available() and not blindly assume 32-bit mode if
the checks fails. BUG() if neither 32-bit or 64-bit mode works.

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