]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/commit
remoteproc: Add a sysfs interface for firmware and state
authorMatt Redfearn <matt.redfearn@imgtec.com>
Wed, 19 Oct 2016 12:05:47 +0000 (13:05 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 26 Jan 2017 11:31:56 +0000 (12:31 +0100)
commit8fd460a956a84f9cb427d18e956a12ce475c18ed
tree5b61096cdfb6ffe5105513320a77b61be7bde0ed
parentdefd7d57071c44292bccb33bb2fcf978f5db8a7c
remoteproc: Add a sysfs interface for firmware and state

This patch adds a sysfs interface to rproc allowing the firmware name
and processor state to be changed dynamically.

State was previously available in debugfs, and is replicated here. The
firmware file allows retrieval of the running firmware name, and a new
one to be specified at run time, so long as the remote processor has
been stopped.

Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Documentation/ABI/testing/sysfs-class-remoteproc [new file with mode: 0644]
drivers/remoteproc/Makefile
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_internal.h
drivers/remoteproc/remoteproc_sysfs.c [new file with mode: 0644]