remoteproc: Add RPROC_DELETED state

Add new state RPROC_DELETED to handle synchronization
between rproc_del() and other operations on rproc. This
state represents the rproc device that has been "deleted".

CC: Loic Pallardy <[email protected]>
CC: Bjorn Andersson <[email protected]>
Signed-off-by: Sarangdhar Joshi <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
This commit is contained in:
Sarangdhar Joshi 2017-01-23 17:53:18 -08:00 • committed by Bjorn Andersson
commit 608d792192
2 changed files with 4 additions and 1 deletions

View file

@ -73,6 +73,7 @@ static const char * const rproc_state_string[] = {
[RPROC_SUSPENDED] = "suspended",
[RPROC_RUNNING] = "running",
[RPROC_CRASHED] = "crashed",
[RPROC_DELETED] = "deleted",
[RPROC_LAST] = "invalid",
};