]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: Introduce rproc handle accessor for children
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 28 Aug 2017 05:34:53 +0000 (22:34 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 1 Sep 2017 22:49:13 +0000 (15:49 -0700)
commitfc191909313edce3c95314138f8568c57f75c514
tree616279dd2fb1c43108e69644439d1e8f2216db6e
parent932439a12629875dd3a868701511f9c65aa85971
remoteproc: Introduce rproc handle accessor for children

In certain circumstances rpmsg devices needs to acquire a handle to the
ancestor remoteproc instance, e.g. to invoke rproc_report_crash() when a
fatal error is detected. Introduce an interface that walks the device
tree in search for a remoteproc instance and return this.

Tested-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h