From: Matt Redfearn <matt.redfearn@imgtec.com>
To: Bjorn Andersson <bjorn.andersson@linaro.org>,
Ohad Ben-Cohen <ohad@wizery.com>
Cc: <linux-remoteproc@vger.kernel.org>,
<linux-kernel@vger.kernel.org>,
"Matt Redfearn" <matt.redfearn@imgtec.com>
Subject: [PATCH 0/4] remoteproc: Add sysfs interface
Date: Tue, 11 Oct 2016 14:39:41 +0100 [thread overview]
Message-ID: <1476193185-32107-1-git-send-email-matt.redfearn@imgtec.com> (raw)
It is often desireable to boot a remote processor with different
firmware files, depending on the needs of the system at a particular
time. This series adds a sysfs interface to the remoteproc core,
exposing interfaces to manipulate the remote processor. One interface is
the "state" file which performs the same function as the one in debugfs
(which is removed later in the series). The other is a "firmware" file
which allows retrieval of the name of the running firmware, and allows a
new firmware to be loaded when written, as long as the remote processor
is currently stopped.
Some groundwork must be laid first, changing the storage mechanism of
the firmware name such that it can be rewritten easily and then
providing an accessor function to facilitate changing the loaded
firmware. That is then wired up to the new sysfs interface.
This series is based on v4.8
Matt Redfearn (4):
remoteproc: Use fixed length field for firmware name
remoteproc: Introduce rproc_change_firmware
remoteproc: Add a sysfs interface for firmware and state
remoteproc: debugfs: Remove state entry which is duplicated is sysfs
Documentation/ABI/testing/sysfs-class-remoteproc | 50 +++++++++
drivers/remoteproc/Makefile | 1 +
drivers/remoteproc/remoteproc_core.c | 129 ++++++++++++++++++----
drivers/remoteproc/remoteproc_debugfs.c | 71 ------------
drivers/remoteproc/remoteproc_internal.h | 6 ++
drivers/remoteproc/remoteproc_sysfs.c | 132 +++++++++++++++++++++++
include/linux/remoteproc.h | 4 +-
7 files changed, 299 insertions(+), 94 deletions(-)
create mode 100644 Documentation/ABI/testing/sysfs-class-remoteproc
create mode 100644 drivers/remoteproc/remoteproc_sysfs.c
--
2.7.4
next reply other threads:[~2016-10-11 13:40 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-11 13:39 Matt Redfearn [this message]
2016-10-11 13:39 ` [PATCH 1/4] remoteproc: Use fixed length field for firmware name Matt Redfearn
2016-10-13 13:22 ` loic pallardy
2016-10-13 14:18 ` Matt Redfearn
2016-10-14 4:31 ` Bjorn Andersson
2016-10-11 13:39 ` [PATCH 2/4] remoteproc: Introduce rproc_change_firmware Matt Redfearn
2016-10-14 4:37 ` Bjorn Andersson
2016-10-11 13:39 ` [PATCH 3/4] remoteproc: Add a sysfs interface for firmware and state Matt Redfearn
2016-10-13 13:56 ` loic pallardy
2016-10-13 14:25 ` Matt Redfearn
2016-10-13 14:39 ` loic pallardy
2016-10-13 15:00 ` Matt Redfearn
2016-10-14 5:14 ` Bjorn Andersson
2016-10-14 5:02 ` Bjorn Andersson
2016-10-11 13:39 ` [PATCH 4/4] remoteproc: debugfs: Remove state entry which is duplicated is sysfs Matt Redfearn
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=1476193185-32107-1-git-send-email-matt.redfearn@imgtec.com \
--to=matt.redfearn@imgtec.com \
--cc=bjorn.andersson@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=ohad@wizery.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
all inboxes | Powered by JetHome®