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
7272 [RPROC_RUNNING] = "running",
7373 [RPROC_CRASHED] = "crashed",
7474 [RPROC_DELETED] = "deleted",
75+ [RPROC_DETACHED] = "detached",
7576 [RPROC_LAST] = "invalid",
7677 };
7778
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 /**

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