Commit 3cc889eb authored by Gokul krishna Krishnakumar's avatar Gokul krishna Krishnakumar Committed by Bjorn Andersson

remoteproc: qcom: q6v5: Avoid setting smem bit in case of crash shutdown

Avoid setting smem bit in case of crash shutdown, as remote
processor is not able to send the ack back.
Signed-off-by: default avatarGokul krishna Krishnakumar <quic_gokukris@quicinc.com>
[bjorn: Rewrote the comment]
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/9e549a54e2a6ede3e413de933fd1725c660993c3.1662995608.git.quic_gokukris@quicinc.com
parent b27aa4d8
...@@ -205,8 +205,8 @@ int qcom_q6v5_request_stop(struct qcom_q6v5 *q6v5, struct qcom_sysmon *sysmon) ...@@ -205,8 +205,8 @@ int qcom_q6v5_request_stop(struct qcom_q6v5 *q6v5, struct qcom_sysmon *sysmon)
q6v5->running = false; q6v5->running = false;
/* Don't perform SMP2P dance if sysmon already shut down the remote */ /* Don't perform SMP2P dance if remote isn't running */
if (qcom_sysmon_shutdown_acked(sysmon)) if (q6v5->rproc->state != RPROC_RUNNING || qcom_sysmon_shutdown_acked(sysmon))
return 0; return 0;
qcom_smem_state_update_bits(q6v5->state, qcom_smem_state_update_bits(q6v5->state,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment