rpmsg: qcom_smd: Fix fallback to qcom,ipc parse
Subsystems (2)
PATCH v2 1/1 rpmsg: qcom_smd: Fix fallback to qcom,ipc parse
mbox_request_channel() returning value was changed in case of error. It uses returning value of of_parse_phandle_with_args().
It is returning with -ENOENT instead of -ENODEV when no mboxes property exists.
---mbox_request_channel() returning value was changed in case of error. It uses returning value of of_parse_phandle_with_args().
It is returning with -ENOENT instead of -ENODEV when no mboxes property exists.
ENODEV was checked before fallback to parse qcom,ipc property.
---
Changes in v2:
- Drop already applied patch.
- qcom_smd: rebase
- Link to v1: https://lore.kernel.org/r/[email protected]
--- drivers/rpmsg/qcom_smd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rpmsg/qcom_smd.c +1 -1
@@ -1368,7 +1368,7 @@ static int qcom_smd_parse_edge(struct device *dev, edge->mbox_client.knows_txdone = true; edge->mbox_chan =mbox_request_channel (&edge->mbox_client,0 );if (IS_ERR (edge->mbox_chan)) { -if (PTR_ERR (edge->mbox_chan) != -ENODEV ) { +if (PTR_ERR (edge->mbox_chan) != -ENOENT ) { ret =dev_err_probe (dev,PTR_ERR (edge->mbox_chan),"failed to acquire IPC mailbox\n" ); goto put_node;
---
base-commit: d7af19298454ed155f5cf67201a70f5cf836c842
change-id: 20250421-fix-qcom-smd-76f7c414a11a
Best regards,
Signature · 1 line
Barnabás Czémán <[email protected]>
Quoted 6 lines · Barnabás Czémán
mbox_request_channel()returning value was changed in case of error. It uses returning value ofof_parse_phandle_with_args().
It is returning with-ENOENTinstead of-ENODEVwhen no mboxes property exists.
Applied, thanks!
[1/1] rpmsg: qcom_smd: Fix fallback to qcom,ipc parse
commit: 09390ed9af37ed612dd0967ff2b0d639872b8776
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>