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

Configure Feed

Select the types of activity you want to include in your feed.

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.

Fixes: 24fdd5074b20 ("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>

authored by

Barnabás Czémán and committed by
Bjorn Andersson
09390ed9 c8a8df49

+1 -1
+1 -1
drivers/rpmsg/qcom_smd.c
··· 1368 1368 edge->mbox_client.knows_txdone = true; 1369 1369 edge->mbox_chan = mbox_request_channel(&edge->mbox_client, 0); 1370 1370 if (IS_ERR(edge->mbox_chan)) { 1371 - if (PTR_ERR(edge->mbox_chan) != -ENODEV) { 1371 + if (PTR_ERR(edge->mbox_chan) != -ENOENT) { 1372 1372 ret = dev_err_probe(dev, PTR_ERR(edge->mbox_chan), 1373 1373 "failed to acquire IPC mailbox\n"); 1374 1374 goto put_node;