diff options
author | Suman Anna <s-anna@ti.com> | 2022-02-13 21:12:42 +0100 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2022-03-11 21:31:55 +0100 |
commit | c13b780c4597e1e6cee3154053a196aa329b1367 (patch) | |
tree | 417f2b40c25c0ad2a681ad46718a836f509e8322 /drivers/remoteproc/remoteproc_sysfs.c | |
parent | remoteproc: qcom: q6v5: Add interconnect path proxy vote (diff) | |
download | linux-c13b780c4597e1e6cee3154053a196aa329b1367.tar.xz linux-c13b780c4597e1e6cee3154053a196aa329b1367.zip |
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
Diffstat (limited to 'drivers/remoteproc/remoteproc_sysfs.c')
-rw-r--r-- | drivers/remoteproc/remoteproc_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/remoteproc/remoteproc_sysfs.c b/drivers/remoteproc/remoteproc_sysfs.c index abf0cd05d5e1..51a04bc6ba7a 100644 --- a/drivers/remoteproc/remoteproc_sysfs.c +++ b/drivers/remoteproc/remoteproc_sysfs.c @@ -206,7 +206,7 @@ static ssize_t state_store(struct device *dev, rproc->state != RPROC_ATTACHED) return -EINVAL; - rproc_shutdown(rproc); + ret = rproc_shutdown(rproc); } else if (sysfs_streq(buf, "detach")) { if (rproc->state != RPROC_ATTACHED) return -EINVAL; |