diff options
author | Bjorn Andersson <bjorn.andersson@sonymobile.com> | 2016-03-28 23:36:59 -0400 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-05-12 18:50:19 -0400 |
commit | b3d39032d7b33029373fbce6459aff6ac316e130 (patch) | |
tree | c82b766e23620d5142b749177ce93551d634f252 | |
parent | e395f9ce49eb5a9fa69c3fd74b6de59a5cb5a300 (diff) |
remoteproc: Add additional crash reasons
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>
-rw-r--r-- | drivers/remoteproc/remoteproc_core.c | 2 | ||||
-rw-r--r-- | include/linux/remoteproc.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index 31dfc9996389..db3958b3f094 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c | |||
@@ -57,6 +57,8 @@ static DEFINE_IDA(rproc_dev_index); | |||
57 | 57 | ||
58 | static const char * const rproc_crash_names[] = { | 58 | static const char * const rproc_crash_names[] = { |
59 | [RPROC_MMUFAULT] = "mmufault", | 59 | [RPROC_MMUFAULT] = "mmufault", |
60 | [RPROC_WATCHDOG] = "watchdog", | ||
61 | [RPROC_FATAL_ERROR] = "fatal error", | ||
60 | }; | 62 | }; |
61 | 63 | ||
62 | /* translate rproc_crash_type to string */ | 64 | /* translate rproc_crash_type to string */ |
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h index 9c4e1384f636..1c457a8dd5a6 100644 --- a/include/linux/remoteproc.h +++ b/include/linux/remoteproc.h | |||
@@ -365,6 +365,8 @@ enum rproc_state { | |||
365 | /** | 365 | /** |
366 | * enum rproc_crash_type - remote processor crash types | 366 | * enum rproc_crash_type - remote processor crash types |
367 | * @RPROC_MMUFAULT: iommu fault | 367 | * @RPROC_MMUFAULT: iommu fault |
368 | * @RPROC_WATCHDOG: watchdog bite | ||
369 | * @RPROC_FATAL_ERROR fatal error | ||
368 | * | 370 | * |
369 | * Each element of the enum is used as an array index. So that, the value of | 371 | * Each element of the enum is used as an array index. So that, the value of |
370 | * the elements should be always something sane. | 372 | * the elements should be always something sane. |
@@ -373,6 +375,8 @@ enum rproc_state { | |||
373 | */ | 375 | */ |
374 | enum rproc_crash_type { | 376 | enum rproc_crash_type { |
375 | RPROC_MMUFAULT, | 377 | RPROC_MMUFAULT, |
378 | RPROC_WATCHDOG, | ||
379 | RPROC_FATAL_ERROR, | ||
376 | }; | 380 | }; |
377 | 381 | ||
378 | /** | 382 | /** |