drivers/net/wwan/iosm/iosm_ipc_mux_codec.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
The ipc_mux_dl_acbcmd_decode() calls the ipc_mux_dl_acb_send_cmds(),
but does not report the error if ipc_mux_dl_acb_send_cmds() fails.
This makes it difficult to detect command sending failures. A proper
implementation can be found in ipc_mux_dl_cmd_decode().
Add error reporting to the call, logging an error message using dev_err()
if the command sending fails.
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
---
drivers/net/wwan/iosm/iosm_ipc_mux_codec.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wwan/iosm/iosm_ipc_mux_codec.c b/drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
index bff46f7ca59f..478c9c8b638b 100644
--- a/drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
+++ b/drivers/net/wwan/iosm/iosm_ipc_mux_codec.c
@@ -509,8 +509,11 @@ static void ipc_mux_dl_acbcmd_decode(struct iosm_mux *ipc_mux,
return;
}
trans_id = le32_to_cpu(cmdh->transaction_id);
- ipc_mux_dl_acb_send_cmds(ipc_mux, cmd, cmdh->if_id,
- trans_id, cmd_p, size, false, true);
+ if (ipc_mux_dl_acb_send_cmds(ipc_mux, cmd, cmdh->if_id,
+ trans_id, cmd_p, size, false, true))
+ dev_err(ipc_mux->dev,
+ "if_id %d: cmd send failed",
+ cmdh->if_id);
}
}
--
2.42.0.windows.2
On 4/5/25 1:52 PM, Wentao Liang wrote: > The ipc_mux_dl_acbcmd_decode() calls the ipc_mux_dl_acb_send_cmds(), > but does not report the error if ipc_mux_dl_acb_send_cmds() fails. > This makes it difficult to detect command sending failures. A proper > implementation can be found in ipc_mux_dl_cmd_decode(). > > Add error reporting to the call, logging an error message using dev_err() > if the command sending fails. > > Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> This has been posted while net-next was still closed for the merged window. You should have waited for the 'net-next is open' announcement on the ML, or checked the status page, see: https://elixir.bootlin.com/linux/v6.13.7/source/Documentation/process/maintainer-netdev.rst#L35 in the interest of fairness towards those who correctly wait for the tree to be open I will ask you to repost this again, in a couple of days. When reposting, you can retain the already collected tags. Thanks! Paolo
On 05.04.2025 14:52, Wentao Liang wrote: > The ipc_mux_dl_acbcmd_decode() calls the ipc_mux_dl_acb_send_cmds(), > but does not report the error if ipc_mux_dl_acb_send_cmds() fails. > This makes it difficult to detect command sending failures. A proper > implementation can be found in ipc_mux_dl_cmd_decode(). > > Add error reporting to the call, logging an error message using dev_err() > if the command sending fails. > > Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> > --- > drivers/net/wwan/iosm/iosm_ipc_mux_codec.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/wwan/iosm/iosm_ipc_mux_codec.c b/drivers/net/wwan/iosm/iosm_ipc_mux_codec.c > index bff46f7ca59f..478c9c8b638b 100644 > --- a/drivers/net/wwan/iosm/iosm_ipc_mux_codec.c > +++ b/drivers/net/wwan/iosm/iosm_ipc_mux_codec.c > @@ -509,8 +509,11 @@ static void ipc_mux_dl_acbcmd_decode(struct iosm_mux *ipc_mux, > return; > } > trans_id = le32_to_cpu(cmdh->transaction_id); > - ipc_mux_dl_acb_send_cmds(ipc_mux, cmd, cmdh->if_id, > - trans_id, cmd_p, size, false, true); > + if (ipc_mux_dl_acb_send_cmds(ipc_mux, cmd, cmdh->if_id, > + trans_id, cmd_p, size, false, true)) > + dev_err(ipc_mux->dev, > + "if_id %d: cmd send failed", > + cmdh->if_id); > } > } Looks good. One nit pick. The full stop is not needed in the subject. But I believe, this does not worth to resend the patch. Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
© 2016 - 2026 Red Hat, Inc.