From: "Sjur Brændeland" <sjur.brandeland@stericsson.com>
To: Ohad Ben-Cohen <ohad@wizery.com>
Cc: "Linus Walleij" <linus.walleij@linaro.org>,
linux-kernel@vger.kernel.org, sjurbren@gmail.com,
"Sjur Brændeland" <sjur.brandeland@stericsson.com>,
"Sjur Brændeland" <sjur.brandeland@steicsson.com>
Subject: [RFC 3/5] remoteproc: Add state RPROC_LOADED
Date: Thu, 6 Dec 2012 20:35:22 +0100 [thread overview]
Message-ID: <1354822524-4497-4-git-send-email-sjur.brandeland@stericsson.com> (raw)
In-Reply-To: <1354822524-4497-1-git-send-email-sjur.brandeland@stericsson.com>
Add state RPROC_LOADED. Prepare for the state when the firmware
is loaded, but remote device is not started.
Signed-off-by: Sjur Brændeland <sjur.brandeland@steicsson.com>
---
drivers/remoteproc/remoteproc_debugfs.c | 1 +
include/linux/remoteproc.h | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/remoteproc/remoteproc_debugfs.c b/drivers/remoteproc/remoteproc_debugfs.c
index 157a573..a026359 100644
--- a/drivers/remoteproc/remoteproc_debugfs.c
+++ b/drivers/remoteproc/remoteproc_debugfs.c
@@ -68,6 +68,7 @@ static const char * const rproc_state_string[] = {
"suspended",
"running",
"crashed",
+ "loaded",
"invalid",
};
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h
index faf3332..17b8120 100644
--- a/include/linux/remoteproc.h
+++ b/include/linux/remoteproc.h
@@ -357,7 +357,8 @@ enum rproc_state {
RPROC_SUSPENDED = 1,
RPROC_RUNNING = 2,
RPROC_CRASHED = 3,
- RPROC_LAST = 4,
+ RPROC_LOADED = 4,
+ RPROC_LAST = 5,
};
/**
--
1.7.9.5
next prev parent reply other threads:[~2012-12-06 19:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-06 19:35 [RFC 0/5] remoteproc: Support bi-directional vdev config space Sjur Brændeland
2012-12-06 19:35 ` [RFC 1/5] remoteproc: Refactor function rproc_elf_find_rsc_table Sjur Brændeland
2012-12-06 19:35 ` [RFC 2/5] remoteproc: Add operation to find resource table in memory Sjur Brændeland
2012-12-06 19:35 ` Sjur Brændeland [this message]
2012-12-06 19:35 ` [RFC 4/5] remoteproc: Load firmware to device memory once Sjur Brændeland
2012-12-06 19:35 ` [RFC 5/5] remoteproc: Support virtio config space Sjur Brændeland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1354822524-4497-4-git-send-email-sjur.brandeland@stericsson.com \
--to=sjur.brandeland@stericsson.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ohad@wizery.com \
--cc=sjur.brandeland@steicsson.com \
--cc=sjurbren@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).