remoteproc: add actual recovery implementation
authorFernando Guzman Lugo <fernando.lugo@ti.com>
Thu, 30 Aug 2012 18:26:13 +0000 (13:26 -0500)
committerOhad Ben-Cohen <ohad@wizery.com>
Tue, 18 Sep 2012 09:53:33 +0000 (12:53 +0300)
commit70b85ef83ce3523f709b622d2c4cb31778686338
treeeeda85e263ef33f247d97280b367ff3b0f46c1b6
parent8afd519c3470f685f964deebd61aa51d83cde90a
remoteproc: add actual recovery implementation

Add rproc_trigger_recovery() which takes care of the recovery itself,
by removing, and re-adding, all of the remoteproc's virtio devices.

This resets all virtio users of the remote processor, during which
the remote processor is powered off and on again.

Signed-off-by: Fernando Guzman Lugo <fernando.lugo@ti.com>
[ohad: introduce rproc_add_virtio_devices to avoid 1.copying code 2.anomaly]
[ohad: some white space, naming and commit log changes]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_internal.h
include/linux/remoteproc.h
This page took 0.027159 seconds and 5 git commands to generate.