remoteproc: Add additional crash reasons
authorBjorn Andersson <bjorn.andersson@sonymobile.com>
Tue, 29 Mar 2016 03:36:59 +0000 (20:36 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 12 May 2016 22:50:19 +0000 (15:50 -0700)
The Qualcomm WCNSS can crash by watchdog or a fatal software error. Add
these types to the list of remoteproc crash reasons.

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h

index 31dfc99..db3958b 100644 (file)
@@ -57,6 +57,8 @@ static DEFINE_IDA(rproc_dev_index);
 
 static const char * const rproc_crash_names[] = {
        [RPROC_MMUFAULT]        = "mmufault",
+       [RPROC_WATCHDOG]        = "watchdog",
+       [RPROC_FATAL_ERROR]     = "fatal error",
 };
 
 /* translate rproc_crash_type to string */
index 9c4e138..1c457a8 100644 (file)
@@ -365,6 +365,8 @@ enum rproc_state {
 /**
  * enum rproc_crash_type - remote processor crash types
  * @RPROC_MMUFAULT:    iommu fault
+ * @RPROC_WATCHDOG:    watchdog bite
+ * @RPROC_FATAL_ERROR  fatal error
  *
  * Each element of the enum is used as an array index. So that, the value of
  * the elements should be always something sane.
@@ -373,6 +375,8 @@ enum rproc_state {
  */
 enum rproc_crash_type {
        RPROC_MMUFAULT,
+       RPROC_WATCHDOG,
+       RPROC_FATAL_ERROR,
 };
 
 /**