summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2022-10-21 06:15:26 +0200
committerMathieu Poirier <mathieu.poirier@linaro.org>2022-10-24 18:30:25 +0200
commit6eed169c7fefd9cdbbccb5ba7a98470cc0c09c63 (patch)
tree6651b1d0998014a0320d209ba725ac029ab19e43 /drivers/remoteproc
parentremoteproc: imx_rproc: Request mbox channel later (diff)
downloadlinux-6eed169c7fefd9cdbbccb5ba7a98470cc0c09c63.tar.xz
linux-6eed169c7fefd9cdbbccb5ba7a98470cc0c09c63.zip
remoteproc: imx_rproc: Enable attach recovery for i.MX8QM/QXP
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>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r--drivers/remoteproc/imx_rproc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c
index dda4e8a12adf..2c471e46f4ca 100644
--- a/drivers/remoteproc/imx_rproc.c
+++ b/drivers/remoteproc/imx_rproc.c
@@ -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);