lkml.org 
[lkml]   [2016]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/4] remoteproc: Add sysfs interface
Date

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

\
 
 \ /
  Last update: 2016-10-11 15:42    [W:0.126 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site