summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc
diff options
context:
space:
mode:
authorMathieu Poirier <mathieu.poirier@linaro.org>2021-03-12 09:24:39 -0700
committerBjorn Andersson <bjorn.andersson@linaro.org>2021-03-18 07:54:52 -0500
commit4196d18903f94090f0a223d65de25e3bf50a3d13 (patch)
treeeba0766e4f82ed08855e78d4ec179ff8a90763c4 /drivers/remoteproc
parent6a6c4dc0e5de5dc4fec0ccda417c26f5814be380 (diff)
downloadlinux-stable-4196d18903f94090f0a223d65de25e3bf50a3d13.tar.gz
linux-stable-4196d18903f94090f0a223d65de25e3bf50a3d13.tar.bz2
linux-stable-4196d18903f94090f0a223d65de25e3bf50a3d13.zip
remoteproc: Add new RPROC_ATTACHED state
Add a new RPROC_ATTACHED state to take into account scenarios where the remoteproc core needs to attach to a remote processor that is booted by another entity. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Arnaud Pouliquen <arnaud.pouliquen@st.com> Link: https://lore.kernel.org/r/20210312162453.1234145-4-mathieu.poirier@linaro.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r--drivers/remoteproc/remoteproc_sysfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/remoteproc/remoteproc_sysfs.c b/drivers/remoteproc/remoteproc_sysfs.c
index 6840dad931d5..26fd9ceecdb5 100644
--- a/drivers/remoteproc/remoteproc_sysfs.c
+++ b/drivers/remoteproc/remoteproc_sysfs.c
@@ -172,6 +172,7 @@ static const char * const rproc_state_string[] = {
[RPROC_RUNNING] = "running",
[RPROC_CRASHED] = "crashed",
[RPROC_DELETED] = "deleted",
+ [RPROC_ATTACHED] = "attached",
[RPROC_DETACHED] = "detached",
[RPROC_LAST] = "invalid",
};