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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -400,6 +400,8 @@ struct rproc_ops { · 399 unmodified lines | ||
| 400 | 400 | * @RPROC_RUNNING: device is up and running |
| 401 | 401 | * @RPROC_CRASHED: device has crashed; need to start recovery |
| 402 | 402 | * @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 | 405 | * @RPROC_LAST: just keep this one at the end |
| 404 | 406 | * |
| 405 | 407 | * Please note that the values of these states are used as indices |
| @@ -414,7 +416,8 @@ enum rproc_state { · 8 unmodified lines | ||
| 414 | 416 | RPROC_RUNNING = 2, |
| 415 | 417 | RPROC_CRASHED = 3, |
| 416 | 418 | RPROC_DELETED = 4, |
| 417 | − RPROC_LAST = 5, | |
| 419 | + RPROC_DETACHED = 5, | |
| 420 | + RPROC_LAST = 6, | |
| 418 | 421 | }; |
| 419 | 422 | |
| 420 | 423 | /** |