remoteproc: create a 'recovery' debugfs entry
authorFernando Guzman Lugo <fernando.lugo@ti.com>
Tue, 18 Sep 2012 09:26:35 +0000 (12:26 +0300)
committerOhad Ben-Cohen <ohad@wizery.com>
Tue, 18 Sep 2012 09:53:41 +0000 (12:53 +0300)
commit2e37abb89a2ef13c524b0728bb9893f996a10b6b
tree11e760251317566b19cd9053608afa67cab88576
parent70b85ef83ce3523f709b622d2c4cb31778686338
remoteproc: create a 'recovery' debugfs entry

Add a 'recovery' debugfs entry to dynamically disable/enable recovery
at runtime. This is useful when one is trying to debug an rproc crash;
without it, a recovery will immediately take place, making it harder
to debug the crash.

Contributions from Subramaniam Chanderashekarapuram.

Examples:

- disabling recovery:
$ echo disabled > <debugfs>/remoteproc/remoteproc0/recovery

- in case you want to recover a crash, but keep recovery disabled
  (useful in debugging sessions when you expect additional crashes
   you want to debug):
$ echo recover > <debugfs>/remoteproc/remoteproc0/recovery

- enabling recovery:
$ echo enabled > <debugfs>/remoteproc/remoteproc0/recovery

Signed-off-by: Fernando Guzman Lugo <fernando.lugo@ti.com>
[ohad: some white space, commentary and commit log changes]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_debugfs.c
include/linux/remoteproc.h