]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: Add remoteproc character device interface
authorSiddharth Gupta <sidgup@codeaurora.org>
Wed, 29 Jul 2020 17:40:00 +0000 (10:40 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 5 Aug 2020 03:16:37 +0000 (20:16 -0700)
commit92c0fb51451041e4f694c07062dffc1fc2c6c9b3
treee294bd66a1f7888ed31ffb88beec163381bbf313
parentb4da7bdd8ed6a5637a31a2127f22bc65292adfe2
remoteproc: Add remoteproc character device interface

Add the character device interface into remoteproc framework.
This interface can be used in order to boot/shutdown remote
subsystems and provides a basic ioctl based interface to implement
supplementary functionality. An ioctl call is implemented to enable
the shutdown on release feature which will allow remote processors to
be shutdown when the controlling userspace application crashes or hangs.

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Link: https://lore.kernel.org/r/1596044401-22083-2-git-send-email-sidgup@codeaurora.org
[bjorn: s/int32_t/s32/ per checkpatch]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Documentation/userspace-api/ioctl/ioctl-number.rst
drivers/remoteproc/Kconfig
drivers/remoteproc/Makefile
drivers/remoteproc/remoteproc_cdev.c [new file with mode: 0644]
drivers/remoteproc/remoteproc_internal.h
include/linux/remoteproc.h
include/uapi/linux/remoteproc_cdev.h [new file with mode: 0644]