FAILED: patch "[PATCH] remoteproc: qcom: q6v5-mss: add SCM probe dependency" failed to apply to 4.18-stable tree
[email protected]
maintainerThe patch below does not apply to the 4.18-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
bbcda30271752bb7490f2e2aef5411dbcae69116Mon Sep 17 00:00:00 2001
From: Brian Norris <[email protected]>
Date: Mon, 8 Oct 2018 19:08:05 -0700
Subject: [PATCH] remoteproc: qcom: q6v5-mss: add SCM probe dependency
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")
Signed-off-by Brian Norris <[email protected]>
[bjorn: Added condition for need_mem_protection, updated commit message]
Signed-off-by Bjorn Andersson <[email protected]>
drivers/remoteproc/qcom_q6v5_mss.c +3 -0
@@ -1152,6 +1152,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) {