]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
remoteproc: Add additional crash reasons
authorBjorn Andersson <bjorn.andersson@sonymobile.com>
Fri, 21 Nov 2014 18:33:30 +0000 (10:33 -0800)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:55:08 +0000 (09:55 +0000)
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h

index 58b8f394956819739908510b41756177f8beebcd..2bd365f7c03c158d2891c6445ff7a3e89eb6dfd7 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 9c4e1384f63602f3eba04b46e22e323fa4a5c90f..1c457a8dd5a6a044fa467ad8a38787b373f95d32 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,
 };
 
 /**