Skip to content

Commit 6eed169

Browse files
MrVanmathieupoirier
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mathieu Poirier <[email protected]>
1 parent 99b142c commit 6eed169

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/remoteproc/imx_rproc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,8 @@ static int imx_rproc_detect_mode(struct imx_rproc *priv)
948948
}
949949

950950
priv->rproc->state = RPROC_DETACHED;
951-
priv->rproc->recovery_disabled = true;
951+
priv->rproc->recovery_disabled = false;
952+
rproc_set_feature(priv->rproc, RPROC_FEAT_ATTACH_ON_RECOVERY);
952953

953954
/* Get partition id and enable irq in SCFW */
954955
ret = imx_sc_rm_get_resource_owner(priv->ipc_handle, priv->rsrc_id, &pt);

0 commit comments

Comments
 (0)