]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: qcom_scm-64: Make SMC macros less magical
authorElliot Berman <eberman@codeaurora.org>
Tue, 7 Jan 2020 21:04:13 +0000 (13:04 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 8 Jan 2020 06:14:06 +0000 (22:14 -0800)
commit1f7f440561d49ff77a3ec1efbd86f1214fadd8bd
tree46ee329624dc76fee8989ac78f099625397f5986
parent7f1f17846335d8184495c1f177abe113fa4461ce
firmware: qcom_scm-64: Make SMC macros less magical

Improve understandability of SMC macros by reversing the logic as they
are all functions of how many arguments can be shoved in registers and
how many SCM arguments are supported.

There aren't 4 register arguments because are 7 arguments that go into a
buffer - there are up to 7 arguments that are overflowed into a buffer
because only 4 registers are allocated for arguments.

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