remoteproc: imx_rproc: Enable attach recovery for i.MX8QM/QXP
authorPeng Fan <peng.fan@nxp.com>
Fri, 21 Oct 2022 04:15:26 +0000 (12:15 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 24 Oct 2022 16:30:25 +0000 (10:30 -0600)
i.MX8QM/QXP M4 could recover without help from Linux, so to support it:
 - enable feature RPROC_FEAT_ATTACH_ON_RECOVERY
 - set recovery_disabled as false

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20221021041526.3696483-8-peng.fan@oss.nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_rproc.c

index dda4e8a..2c471e4 100644 (file)
@@ -948,7 +948,8 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv)
                }
 
                priv->rproc->state = RPROC_DETACHED;
-               priv->rproc->recovery_disabled = true;
+               priv->rproc->recovery_disabled = false;
+               rproc_set_feature(priv->rproc, RPROC_FEAT_ATTACH_ON_RECOVERY);
 
                /* Get partition id and enable irq in SCFW */
                ret = imx_sc_rm_get_resource_owner(priv->ipc_handle, priv->rsrc_id, &pt);