remoteproc: Fixup coredump debugfs disable request
Subsystems (2)
PATCH 1/1 remoteproc: Fixup coredump debugfs disable request
Currently the coredump debugfs entry takes in "disable" to set the coredump state to "disabled". Let's just accept the expected state instead.
--- drivers/remoteproc/remoteproc_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/remoteproc/remoteproc_debugfs.c +1 -1
@@ -94,7 +94,7 @@ static ssize_t rproc_coredump_write(struct file *filp, goto out; } -if (!strncmp (buf,"disable" , count)) { +if (!strncmp (buf,"disabled" , count)) { rproc->dump_conf =RPROC_COREDUMP_DISABLED ; }else if (!strncmp (buf,"inline" , count)) { rproc->dump_conf =RPROC_COREDUMP_INLINE ;
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 4 lines · Sibi Sankar
Currently the coredump debugfs entry takes in "disable" to set the coredump state to "disabled". Let's just accept the expected state instead.
I like this patch, but rather than arguing that it should match the name of the internal state I think you should either argue that when read you get "disabled" back or that "disabled" would make it consistent with the recovery.
Regards,
Bjorn
Quoted 23 lines
Fixes 3afdc59e43904 ("remoteproc: Add coredump debugfs entry")Signed-off-by Sibi Sankar <[email protected]>--- drivers/remoteproc/remoteproc_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/remoteproc/remoteproc_debugfs.c +1
-1@@ -94,7 +94,7 @@ static ssize_t rproc_coredump_write(struct file *filp, goto out; } -if (!strncmp (buf,"disable" , count)) { +if (!strncmp (buf,"disabled" , count)) { rproc->dump_conf =RPROC_COREDUMP_DISABLED ; }else if (!strncmp (buf,"inline" , count)) { rproc->dump_conf =RPROC_COREDUMP_INLINE ;Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Hey Bjorn,
Thanks for taking time to review the
patch.
Quoted 11 lines · Bjorn Andersson
Quoted 4 lines · Sibi Sankar
Currently the coredump debugfs entry takes in "disable" to set the coredump state to "disabled". Let's just accept the expected state instead.
I like this patch, but rather than arguing that it should match the name of the internal state I think you should either argue that when read you get "disabled" back or that "disabled" would make it consistent with the recovery.
Sure, I'll re-word the commit message.
I probably choose the read back argument
because that's what was odd about it in
the first place.
Quoted 28 lines
Regards,
BjornQuoted 24 lines
Fixes 3afdc59e43904 ("remoteproc: Add coredump debugfs entry")Signed-off-by Sibi Sankar <[email protected]>--- drivers/remoteproc/remoteproc_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/remoteproc/remoteproc_debugfs.c +1
-1@@ -94,7 +94,7 @@ static ssize_t rproc_coredump_write(struct file *filp, goto out; } -if (!strncmp (buf,"disable" , count)) { +if (!strncmp (buf,"disabled" , count)) { rproc->dump_conf =RPROC_COREDUMP_DISABLED ; }else if (!strncmp (buf,"inline" , count)) {
rproc->dump_conf=RPROC_COREDUMP_INLINE;
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.