]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: Add a sysfs interface for name
authorSuman Anna <s-anna@ti.com>
Fri, 9 Aug 2019 22:20:57 +0000 (17:20 -0500)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 26 Aug 2019 21:50:16 +0000 (14:50 -0700)
commit394892bcaf6e0d3194aec6f406bc2b048331be52
tree066def8c68bac68032be93823a51ae9e39eb5660
parentfc67878fd326ee0ad97147c4624121be8b352dcc
remoteproc: Add a sysfs interface for name

This patch adds a sysfs interface that provides the name of the
remote processor to userspace. This allows the userspace to identify
a remote processor as the remoteproc devices themselves are created
based on probe order and can change from one boot to another or
at runtime.

The name is made available in debugfs originally, and is being
retained for now. This can be cleaned up after couple of releases
once users get familiar with the new interface.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Documentation/ABI/testing/sysfs-class-remoteproc
drivers/remoteproc/remoteproc_sysfs.c