]> 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)
commit0d807ae39f1decef7246a2957c8bf94448ca2fff
tree46ee329624dc76fee8989ac78f099625397f5986
parentab0de9c5e84f8c22601f8aa3726a69ea38117474
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