remoteproc: remoteproc debugfs file fixes
authorAlex Elder <elder@linaro.org>
Fri, 28 Feb 2020 18:33:57 +0000 (12:33 -0600)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 26 Mar 2020 05:29:43 +0000 (22:29 -0700)
commite138cce3e3736ef0a2772fb963f01c1bafb29c71
tree51313331347a04870a6d7fce484309f61925f17d
parent0b145574b6cd2b326d53fd2cf8054ffd4ad6103f
remoteproc: remoteproc debugfs file fixes

Don't bother checking the remoteproc state before calling
rproc_trigger_recovery() because that function will verify the
state, and the state can only be safely checked while holding the
mutex anyway.

Make the mode for "recovery" be writable.

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