summaryrefslogtreecommitdiff
path: root/drivers/firmware/qcom_scm-legacy.c
diff options
context:
space:
mode:
authorStephen Boyd <swboyd@chromium.org>2021-02-24 00:45:36 +0300
committerBjorn Andersson <bjorn.andersson@linaro.org>2021-04-07 05:25:33 +0300
commit257f2935cbbf14b16912c635fcd8ff43345c953b (patch)
tree4ad048f8ae50d21c9501ffe0fb1140a015177c24 /drivers/firmware/qcom_scm-legacy.c
parentf6ea568f0ddcdfad52807110ed8983e610f0e03b (diff)
downloadlinux-257f2935cbbf14b16912c635fcd8ff43345c953b.tar.xz
firmware: qcom_scm: Workaround lack of "is available" call on SC7180
Some SC7180 firmwares don't implement the QCOM_SCM_INFO_IS_CALL_AVAIL API, so we can't probe the calling convention. We detect the legacy calling convention on these firmwares, because the availability call always fails and legacy is the fallback. This leads to problems where the rmtfs driver fails to probe, because it tries to assign memory with a bad calling convention, which then leads to modem failing to load and all networking, even wifi, to fail. Ouch! Let's force the calling convention to be what it always is on this SoC, i.e. arm64. Of course, the calling convention is not the same thing as implementing the QCOM_SCM_INFO_IS_CALL_AVAIL API. The absence of the "is this call available" API from the firmware means that any call to __qcom_scm_is_call_available() fails. This is OK for now though because none of the calls that are checked for existence are implemented on firmware running on sc7180. If such a call needs to be checked for existence in the future, we presume that firmware will implement this API and then things will "just work". Cc: Elliot Berman <eberman@codeaurora.org> Cc: Brian Masney <masneyb@onstation.org> Cc: Stephan Gerhold <stephan@gerhold.net> Cc: Jeffrey Hugo <jhugo@codeaurora.org> Cc: Douglas Anderson <dianders@chromium.org> Fixes: 9a434cee773a ("firmware: qcom_scm: Dynamically support SMCCC and legacy conventions") Signed-off-by: Stephen Boyd <swboyd@chromium.org> Link: https://lore.kernel.org/r/20210223214539.1336155-4-swboyd@chromium.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/firmware/qcom_scm-legacy.c')
0 files changed, 0 insertions, 0 deletions