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

Unified · Split

2 files
  1. drivers/remoteproc/remoteproc_sysfs.c +1 −0
  2. include/linux/remoteproc.h +4 −1
drivers/remoteproc/remoteproc_sysfs.c+1−0
@@ -72,6 +72,7 @@ static const char * const rproc_state_string[] = { · 71 unmodified lines
72 [RPROC_RUNNING] = "running",72 [RPROC_RUNNING] = "running",
73 [RPROC_CRASHED] = "crashed",73 [RPROC_CRASHED] = "crashed",
74 [RPROC_DELETED] = "deleted",74 [RPROC_DELETED] = "deleted",
75 [RPROC_DETACHED] = "detached",
75 [RPROC_LAST] = "invalid",76 [RPROC_LAST] = "invalid",
76};77};
77 78
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/**

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t