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)
commit7c89717f82bd305e3102963485f3da160d11bcf6
tree616279dd2fb1c43108e69644439d1e8f2216db6e
parent4fec0a5a193666279635eeb0257984b7a88ee332
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