summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc/qcom_q6v5_pil.c
diff options
context:
space:
mode:
authorJitendra Sharma <shajit@codeaurora.org>2018-02-08 12:41:02 +0100
committerBjorn Andersson <bjorn.andersson@linaro.org>2018-02-12 19:30:15 +0100
commit2d02d158047643060b7d6e0829fcc81518ce663d (patch)
tree9e8f86e24b2cf91d4cbf6f672c11e690ed68b67c /drivers/remoteproc/qcom_q6v5_pil.c
parentLinux 4.16-rc1 (diff)
downloadlinux-2d02d158047643060b7d6e0829fcc81518ce663d.tar.xz
linux-2d02d158047643060b7d6e0829fcc81518ce663d.zip
remoteproc: Remove null character write of shared mem
remoteproc is writing '\0' in the shared mem region. This region is shared among multiple clients that are also trying to read. Hence they miss first character. Remove this null character write, as this mem area is supposed to be Read only. Further during every subsystem reboot, this region is initialized with default, hence no need to write this region. Signed-off-by: Jitendra Sharma <shajit@codeaurora.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc/qcom_q6v5_pil.c')
-rw-r--r--drivers/remoteproc/qcom_q6v5_pil.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/remoteproc/qcom_q6v5_pil.c b/drivers/remoteproc/qcom_q6v5_pil.c
index b4e5e725848d..7293d45c2671 100644
--- a/drivers/remoteproc/qcom_q6v5_pil.c
+++ b/drivers/remoteproc/qcom_q6v5_pil.c
@@ -939,9 +939,6 @@ static irqreturn_t q6v5_wdog_interrupt(int irq, void *dev)
rproc_report_crash(qproc->rproc, RPROC_WATCHDOG);
- if (!IS_ERR(msg))
- msg[0] = '\0';
-
return IRQ_HANDLED;
}
@@ -959,9 +956,6 @@ static irqreturn_t q6v5_fatal_interrupt(int irq, void *dev)
rproc_report_crash(qproc->rproc, RPROC_FATAL_ERROR);
- if (!IS_ERR(msg))
- msg[0] = '\0';
-
return IRQ_HANDLED;
}