OSDN Git Service

remoteproc: return error for bad "recovery" debugfs input
authorAlex Elder <elder@linaro.org>
Fri, 28 Feb 2020 18:33:59 +0000 (12:33 -0600)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 26 Mar 2020 05:29:44 +0000 (22:29 -0700)
commit1f2f65c41034accf9baf684c0dae756b56fac19f
treea0ca7d43daf580e38078089d02aac116042f9790
parente138cce3e3736ef0a2772fb963f01c1bafb29c71
remoteproc: return error for bad "recovery" debugfs input

If the value written to the "recovery" debugfs file is not one of
the recognized commands return an error to indicate it's invalid.

Signed-off-by: Alex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20200228183359.16229-5-elder@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_debugfs.c