History

remoteproc: Add new RPROC_DETACHED state

Add a new RPROC_DETACHED state to take into account scenarios where the remoteproc core needs to attach to a remote processor that is booted by another entity.

Mathieu Poirier committed 6 years ago

Commit e2e5c551 parent 4e6751a2 files · +5 −1Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/remoteproc.h+4−1
@@ -400,6 +400,8 @@ struct rproc_ops { · 399 unmodified lines
400400 * @RPROC_RUNNING: device is up and running
401401 * @RPROC_CRASHED: device has crashed; need to start recovery
402402 * @RPROC_DELETED: device is deleted
403+ * @RPROC_DETACHED: device has been booted by another entity and waiting
404+ * for the core to attach to it
403405 * @RPROC_LAST: just keep this one at the end
404406 *
405407 * Please note that the values of these states are used as indices
@@ -414,7 +416,8 @@ enum rproc_state { · 8 unmodified lines
414416 RPROC_RUNNING = 2,
415417 RPROC_CRASHED = 3,
416418 RPROC_DELETED = 4,
417− RPROC_LAST = 5,
419+ RPROC_DETACHED = 5,
420+ RPROC_LAST = 6,
418421 };
419422
420423 /**