Skip to content

Commit c81ee29

Browse files
barni2000opsiff
authored andcommitted
rpmsg: qcom_smd: Fix fallback to qcom,ipc parse
mainline inclusion from mainline-v6.18-rc1 commit 09390ed category: bugfix bugzilla: https://atomgit.com/openeuler/kernel/issues/8365 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=09390ed9af37ed612dd0967ff2b0d639872b8776 -------------------------------- 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. Fixes: 24fdd50 ("mailbox: use error ret code of of_parse_phandle_with_args()") Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Reviewed-by: Stephan Gerhold <stephan.gerhold@linaro.org> Tested-by: Stephan Gerhold <stephan.gerhold@linaro.org> # msm8939 Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org> Link: https://lore.kernel.org/r/20250725-fix-qcom-smd-v2-1-e4e43613f874@mainlining.org Signed-off-by: Bjorn Andersson <andersson@kernel.org> (cherry picked from commit 09390ed) Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Conflicts: drivers/rpmsg/qcom_smd.c
1 parent 0d3594d commit c81ee29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/rpmsg/qcom_smd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ static int qcom_smd_parse_edge(struct device *dev,
13681368
edge->mbox_client.knows_txdone = true;
13691369
edge->mbox_chan = mbox_request_channel(&edge->mbox_client, 0);
13701370
if (IS_ERR(edge->mbox_chan)) {
1371-
if (PTR_ERR(edge->mbox_chan) != -ENODEV) {
1371+
if (PTR_ERR(edge->mbox_chan) != -ENOENT) {
13721372
ret = PTR_ERR(edge->mbox_chan);
13731373
goto put_node;
13741374
}

0 commit comments

Comments
 (0)