Skip to content

Commit b6a1579

Browse files
barni2000opsiff
authored andcommitted
soc: qcom: smp2p: Fix fallback to qcom,ipc parse
mainline inclusion from mainline-v6.16-rc1 commit 421777a 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=421777a02bbd9cdabe0ae05a69ee06253150589d -------------------------------- 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()") Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org> Reviewed-by: Stephan Gerhold <stephan.gerhold@linaro.org> Tested-by: Stephan Gerhold <stephan.gerhold@linaro.org> # msm8939 Link: https://lore.kernel.org/r/20250421-fix-qcom-smd-v1-2-574d071d3f27@mainlining.org Signed-off-by: Bjorn Andersson <andersson@kernel.org> (cherry picked from commit 421777a) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent c81ee29 commit b6a1579

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soc/qcom/smp2p.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ static int qcom_smp2p_probe(struct platform_device *pdev)
559559
smp2p->mbox_client.knows_txdone = true;
560560
smp2p->mbox_chan = mbox_request_channel(&smp2p->mbox_client, 0);
561561
if (IS_ERR(smp2p->mbox_chan)) {
562-
if (PTR_ERR(smp2p->mbox_chan) != -ENODEV)
562+
if (PTR_ERR(smp2p->mbox_chan) != -ENOENT)
563563
return PTR_ERR(smp2p->mbox_chan);
564564

565565
smp2p->mbox_chan = NULL;

0 commit comments

Comments
 (0)