android_kernel_motorola_sm6225/drivers/remoteproc
Sibi Sankar 7d3146f3b1 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
instead.

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 <evgreen@chromium.org>
Fixes: 3b415c8fb2 ("remoteproc: q6v5: Extract common resource handling")
Cc: stable@vger.kernel.org
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Link: https://lore.kernel.org/r/20200602163257.26978-1-sibis@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-08-21 11:05:34 +02:00
..
da8xx_remoteproc.c remoteproc/davinci: Use %zx for formating size_t 2019-11-20 18:45:25 +01:00
imx_rproc.c remoteproc: imx_rproc: Slightly simplify code in 'imx_rproc_probe()' 2018-03-18 15:43:46 -07:00
Kconfig remoteproc: qcom: fix Q6V5_WCSS dependencies 2018-07-30 21:17:26 -07:00
keystone_remoteproc.c remoteproc/keystone: explicitly request exclusive reset control 2017-08-27 23:16:22 -07:00
Makefile remoteproc: qcom: Introduce Hexagon V5 based WCSS driver 2018-06-18 15:57:58 -07:00
omap_remoteproc.c
omap_remoteproc.h
qcom_adsp_pil.c remoteproc: qcom: adsp: Use common q6v5 helpers 2018-06-18 15:56:02 -07:00
qcom_common.c remoteproc: rename subdev probe and remove functions 2018-06-26 14:09:12 -07:00
qcom_common.h remoteproc: qcom: Introduce sysmon 2018-02-12 16:57:22 -08:00
qcom_q6v5.c remoteproc: qcom: q6v5: Update running state before requesting stop 2020-08-21 11:05:34 +02:00
qcom_q6v5.h remoteproc: q6v5: Extract common resource handling 2018-06-18 15:55:57 -07:00
qcom_q6v5_pil.c remoteproc: qcom: q6v5-mss: Add missing regulator for MSM8996 2020-01-27 14:50:10 +01:00
qcom_q6v5_wcss.c remoteproc: qcom: Introduce Hexagon V5 based WCSS driver 2018-06-18 15:57:58 -07:00
qcom_sysmon.c remoteproc: Make client initialize ops in rproc_subdev 2018-06-26 13:53:07 -07:00
qcom_wcnss.c remoteproc: qcom: Introduce sysmon 2018-02-12 16:57:22 -08:00
qcom_wcnss.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qcom_wcnss_iris.c
remoteproc_core.c remoteproc: Fix IDR initialisation in rproc_alloc() 2020-06-25 15:32:47 +02:00
remoteproc_debugfs.c remoteproc: replace "%p" with "%pK" 2018-07-30 23:24:15 -07:00
remoteproc_elf_loader.c remoteproc: Move resource table load logic to find 2018-01-15 09:29:53 -08:00
remoteproc_internal.h remoteproc: Rename "load_rsc_table" to "parse_fw" 2018-02-12 11:05:30 -08:00
remoteproc_sysfs.c remoteproc: Check for NULL firmwares in sysfs interface 2019-11-24 08:20:29 +01:00
remoteproc_virtio.c remoteproc: replace "%p" with "%pK" 2018-07-30 23:24:15 -07:00
st_remoteproc.c remoteproc: st: explicitly request exclusive reset control 2017-08-27 23:18:52 -07:00
st_slim_rproc.c remoteproc: st_slim: replace "%p" with "%pK" 2018-07-30 23:25:09 -07:00
wkup_m3_rproc.c