Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

remoteproc: Fixup coredump debugfs disable request

Fix the discrepancy observed between accepted input and read back value
while disabling remoteproc coredump through the coredump debugfs entry.

Fixes: 3afdc59e4390 ("remoteproc: Add coredump debugfs entry")
Cc: stable@vger.kernel.org
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Link: https://lore.kernel.org/r/20200916145100.15872-1-sibis@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

authored by

Sibi Sankar and committed by
Bjorn Andersson
18946226 4360f93a

+1 -1
+1 -1
drivers/remoteproc/remoteproc_debugfs.c
··· 94 94 goto out; 95 95 } 96 96 97 - if (!strncmp(buf, "disable", count)) { 97 + if (!strncmp(buf, "disabled", count)) { 98 98 rproc->dump_conf = RPROC_COREDUMP_DISABLED; 99 99 } else if (!strncmp(buf, "inline", count)) { 100 100 rproc->dump_conf = RPROC_COREDUMP_INLINE;