remoteproc: qcom: q6v5-mss: add SCM probe dependency
authorBrian Norris <briannorris@chromium.org>
Tue, 9 Oct 2018 02:08:05 +0000 (19:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Sep 2019 06:21:48 +0000 (08:21 +0200)
commit2c2cf2245ff60a1dedeeaf8c62df4aa1919ea4b7
treef90a749317b97433b9d5dd7dbe0e5a6fa79a3fb5
parent4d9707586ec70f6bc78eef980c03bfe953a0eb52
remoteproc: qcom: q6v5-mss: add SCM probe dependency

[ Upstream commit bbcda30271752bb7490f2e2aef5411dbcae69116 ]

The memory ownership transfer request is performed using SCM, ensure
that SCM is available before we probe the driver if memory protection is
needed by the subsystem.

Fixes: 6c5a9dc2481b ("remoteproc: qcom: Make secure world call for mem ownership switch")
Cc: stable@vger.kernel.org
Signed-off-by: Brian Norris <briannorris@chromium.org>
[bjorn: Added condition for need_mem_protection, updated commit message]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/remoteproc/qcom_q6v5_pil.c