summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc
diff options
context:
space:
mode:
authorSibi Sankar <sibis@codeaurora.org>2020-01-17 19:21:29 +0530
committerBjorn Andersson <bjorn.andersson@linaro.org>2020-01-21 15:37:08 -0800
commit0c2caf75aa40b2622900ed47ff59cf342a4b5b09 (patch)
treecfb1abc8059c59bfac60ce795869502acca7cc36 /drivers/remoteproc
parent7e0f8688798c72ba29c50abb7156c40c72954290 (diff)
downloadlinux-stable-0c2caf75aa40b2622900ed47ff59cf342a4b5b09.tar.gz
linux-stable-0c2caf75aa40b2622900ed47ff59cf342a4b5b09.tar.bz2
linux-stable-0c2caf75aa40b2622900ed47ff59cf342a4b5b09.zip
remoteproc: qcom: q6v5-mss: Rename boot status timeout
Rename the FSM timeout on SC7180 to BOOT_STATUS_TIMEOUT_US. Reviewed-by: Evan Green <evgreen@chromium.org> Signed-off-by: Sibi Sankar <sibis@codeaurora.org> Link: https://lore.kernel.org/r/20200117135130.3605-4-sibis@codeaurora.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r--drivers/remoteproc/qcom_q6v5_mss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/remoteproc/qcom_q6v5_mss.c b/drivers/remoteproc/qcom_q6v5_mss.c
index ffb5b0ef71ff..899ed769a343 100644
--- a/drivers/remoteproc/qcom_q6v5_mss.c
+++ b/drivers/remoteproc/qcom_q6v5_mss.c
@@ -113,7 +113,7 @@
#define QDSP6SS_BOOT_CORE_START 0x400
#define QDSP6SS_BOOT_CMD 0x404
#define QDSP6SS_BOOT_STATUS 0x408
-#define SLEEP_CHECK_MAX_LOOPS 200
+#define BOOT_STATUS_TIMEOUT_US 200
#define BOOT_FSM_TIMEOUT 10000
struct reg_info {
@@ -571,7 +571,7 @@ static int q6v5proc_reset(struct q6v5 *qproc)
/* Poll the QDSP6SS_BOOT_STATUS for FSM completion */
ret = readl_poll_timeout(qproc->reg_base + QDSP6SS_BOOT_STATUS,
val, (val & BIT(0)) != 0, 1,
- SLEEP_CHECK_MAX_LOOPS);
+ BOOT_STATUS_TIMEOUT_US);
if (ret) {
dev_err(qproc->dev, "Boot FSM failed to complete.\n");
/* Reset the modem so that boot FSM is in reset state */