mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
remoteproc: qcom: q6v5-mss: add SCM probe dependency
[ Upstream commitbbcda30271
] 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:6c5a9dc248
("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>
This commit is contained in:
parent
4d9707586e
commit
2c2cf2245f
1 changed files with 3 additions and 0 deletions
|
@ -1132,6 +1132,9 @@ static int q6v5_probe(struct platform_device *pdev)
|
|||
if (!desc)
|
||||
return -EINVAL;
|
||||
|
||||
if (desc->need_mem_protection && !qcom_scm_is_available())
|
||||
return -EPROBE_DEFER;
|
||||
|
||||
rproc = rproc_alloc(&pdev->dev, pdev->name, &q6v5_ops,
|
||||
desc->hexagon_mba_image, sizeof(*qproc));
|
||||
if (!rproc) {
|
||||
|
|
Loading…
Reference in a new issue