remoteproc: Change rproc_shutdown() to return a status
authorSuman Anna <s-anna@ti.com>
Sun, 13 Feb 2022 20:12:42 +0000 (14:12 -0600)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 11 Mar 2022 20:31:55 +0000 (14:31 -0600)
commitc13b780c4597e1e6cee3154053a196aa329b1367
tree417f2b40c25c0ad2a681ad46718a836f509e8322
parent8d9be5c6bdcda9e29597d3fbb24d1f6699da4616
remoteproc: Change rproc_shutdown() to return a status

The rproc_shutdown() function is currently not returning any
error code, and any failures within rproc_stop() are not passed
back to the users. Change the signature to return a success value
back to the callers.

The remoteproc sysfs and cdev interfaces are also updated to
return back this status to userspace.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220213201246.25952-2-s-anna@ti.com
Documentation/staging/remoteproc.rst
drivers/remoteproc/remoteproc_cdev.c
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_sysfs.c
include/linux/remoteproc.h