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)
commit4476770881d7ac647e3bcae0943f37e00b9c3f3c
treee294bd66a1f7888ed31ffb88beec163381bbf313
parent2f3ee5e481ce850b5b51a306b01a5e9187b206ae
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]