blob: b1900487fdfb87838c5e252757855f72d42f61c5 [file] [log] [blame]
From 98a70b0520ec9e85a1874515d1ae310e0b3b00b9 Mon Sep 17 00:00:00 2001
From: Sibi Sankar <>
Date: Tue, 2 Jun 2020 22:02:56 +0530
Subject: [PATCH] remoteproc: qcom: q6v5: Update running state before
requesting stop
commit 5b7be880074c73540948f8fc597e0407b98fabfa upstream.
Sometimes the stop triggers a watchdog rather than a stop-ack. Update
the running state to false on requesting stop to skip the watchdog
Error Logs:
$ echo stop > /sys/class/remoteproc/remoteproc0/state
ipa 1e40000.ipa: received modem stopping event
remoteproc-modem: watchdog received: sys_m_smsm_mpss.c:291:APPS force stop
qcom-q6v5-mss 4080000.remoteproc-modem: port failed halt
ipa 1e40000.ipa: received modem offline event
remoteproc0: stopped remote processor 4080000.remoteproc-modem
Reviewed-by: Evan Green <>
Fixes: 3b415c8fb263 ("remoteproc: q6v5: Extract common resource handling")
Signed-off-by: Sibi Sankar <>
Signed-off-by: Bjorn Andersson <>
Signed-off-by: Paul Gortmaker <>
diff --git a/drivers/remoteproc/qcom_q6v5.c b/drivers/remoteproc/qcom_q6v5.c
index 0d33e3079f0d..ef61cb709acd 100644
--- a/drivers/remoteproc/qcom_q6v5.c
+++ b/drivers/remoteproc/qcom_q6v5.c
@@ -151,6 +151,8 @@ int qcom_q6v5_request_stop(struct qcom_q6v5 *q6v5)
int ret;
+ q6v5->running = false;
BIT(q6v5->stop_bit), BIT(q6v5->stop_bit));