summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc/qcom_q6v5_wcss.c
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2020-11-22 06:41:34 +0100
committerBjorn Andersson <bjorn.andersson@linaro.org>2020-11-26 06:05:24 +0100
commited5da80873a792b9b2b560a6417bc60679ba5126 (patch)
treebc9c68f1d849d8d4008a5d0d36c91d54c7950ef5 /drivers/remoteproc/qcom_q6v5_wcss.c
parentremoteproc: sysmon: Expose the shutdown result (diff)
downloadlinux-ed5da80873a792b9b2b560a6417bc60679ba5126.tar.xz
linux-ed5da80873a792b9b2b560a6417bc60679ba5126.zip
remoteproc: qcom: q6v5: Query sysmon before graceful shutdown
Requesting a graceful shutdown through the shared memory state signals will not be acked in the event that sysmon has already successfully shut down the remote firmware. So extend the stop request API to optionally take the remoteproc's sysmon instance and query if there's already been a successful shutdown attempt, before doing the signal dance. Tested-by: Steev Klimaszewski <steev@kali.org> Reviewed-by: Rishabh Bhatnagar <rishabhb@codeaurora.org> Link: https://lore.kernel.org/r/20201122054135.802935-4-bjorn.andersson@linaro.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc/qcom_q6v5_wcss.c')
-rw-r--r--drivers/remoteproc/qcom_q6v5_wcss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/remoteproc/qcom_q6v5_wcss.c b/drivers/remoteproc/qcom_q6v5_wcss.c
index 8846ef0b0f1a..78ebe1168b33 100644
--- a/drivers/remoteproc/qcom_q6v5_wcss.c
+++ b/drivers/remoteproc/qcom_q6v5_wcss.c
@@ -390,7 +390,7 @@ static int q6v5_wcss_stop(struct rproc *rproc)
int ret;
/* WCSS powerdown */
- ret = qcom_q6v5_request_stop(&wcss->q6v5);
+ ret = qcom_q6v5_request_stop(&wcss->q6v5, NULL);
if (ret == -ETIMEDOUT) {
dev_err(wcss->dev, "timed out on wait\n");
return ret;