]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit4a9f1e13b7ed89e66ca9f7c46e48e305402e0732
tree46ee329624dc76fee8989ac78f099625397f5986
parent9a1108d2b001cda1af17160c78afedfff92e2202
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