summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSubramaniam Chanderashekarapuram <subramaniam.ca@ti.com>2012-06-04 21:53:47 -0500
committerAndy Green <andy.green@linaro.org>2012-09-07 13:05:47 +0800
commite89fa252b3b2a3fe03635d22d0674ff1ad7a86a0 (patch)
tree2518a029c52f09f2e417a69abae68d1d9685b560 /drivers
parent2821c84bc9703a61673288a15f40607413833c7b (diff)
remoteproc: omap: trigger recovery for device exceptions
The omap remoteproc driver detects device exceptions when a mailbox crash message is sent by the remote core. The omap remoteproc driver notifies the remoteproc core using the rproc_error_reporter function to trigger a recovery in the event of any device exceptions. Change-Id: Ief557c7d34b28011bc520b0412752c5d28fce37d Signed-off-by: Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/remoteproc/omap_remoteproc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/remoteproc/omap_remoteproc.c b/drivers/remoteproc/omap_remoteproc.c
index 6d1606d77310..dccd07f3dea3 100644
--- a/drivers/remoteproc/omap_remoteproc.c
+++ b/drivers/remoteproc/omap_remoteproc.c
@@ -121,8 +121,10 @@ static int omap_rproc_mbox_callback(struct notifier_block *this,
switch (msg) {
case RP_MBOX_CRASH:
- /* just log this for now. later, we'll also do recovery */
+ /* remoteproc detected an exception, notify the rproc core.
+ * The remoteproc core will handle the recovery. */
dev_err(dev, "omap rproc %s crashed\n", name);
+ rproc_error_reporter(oproc->rproc, RPROC_ERR_EXCEPTION);
break;
case RP_MBOX_ECHO_REPLY:
dev_info(dev, "received echo reply from %s\n", name);