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
400 * @RPROC_RUNNING: device is up and running400 * @RPROC_RUNNING: device is up and running
401 * @RPROC_CRASHED: device has crashed; need to start recovery401 * @RPROC_CRASHED: device has crashed; need to start recovery
402 * @RPROC_DELETED: device is deleted402 * @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
403 * @RPROC_LAST: just keep this one at the end405 * @RPROC_LAST: just keep this one at the end
404 *406 *
405 * Please note that the values of these states are used as indices407 * Please note that the values of these states are used as indices
@@ -414,7 +416,8 @@ enum rproc_state { · 8 unmodified lines
414 RPROC_RUNNING = 2,416 RPROC_RUNNING = 2,
415 RPROC_CRASHED = 3,417 RPROC_CRASHED = 3,
416 RPROC_DELETED = 4,418 RPROC_DELETED = 4,
417 RPROC_LAST = 5,419 RPROC_DETACHED = 5,
420 RPROC_LAST = 6,
418};421};
419 422
420/**423/**