mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] rpmsg: qcom_smd: Fix fallback to qcom,ipc parse
@ 2025-07-25 20:02 Barnabás Czémán
  2025-09-22 14:00 ` Bjorn Andersson
  0 siblings, 1 reply; 2+ messages in thread
From: Barnabás Czémán @ 2025-07-25 20:02 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier, Tudor Ambarus, Jassi Brar,
	Konrad Dybcio
  Cc: linux-arm-msm, linux-remoteproc, linux-kernel, Luca Weiss,
	Dmitry Baryshkov, Stephan Gerhold,
	Barnabás Czémán

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>
---
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/20250421-fix-qcom-smd-v1-0-574d071d3f27@mainlining.org
---
 drivers/rpmsg/qcom_smd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c
index f0f12e7ad2a61922723c16e45738e93bd432c6c6..42594f5ee4385c0071c91d9a5a05fb8517c82bc0 100644
--- a/drivers/rpmsg/qcom_smd.c
+++ b/drivers/rpmsg/qcom_smd.c
@@ -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,
-- 
Barnabás Czémán <barnabas.czeman@mainlining.org>


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] rpmsg: qcom_smd: Fix fallback to qcom,ipc parse
  2025-07-25 20:02 [PATCH v2] rpmsg: qcom_smd: Fix fallback to qcom,ipc parse Barnabás Czémán
@ 2025-09-22 14:00 ` Bjorn Andersson
  0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Andersson @ 2025-09-22 14:00 UTC (permalink / raw)
  To: Mathieu Poirier, Tudor Ambarus, Jassi Brar, Konrad Dybcio,
	Barnabás Czémán
  Cc: linux-arm-msm, linux-remoteproc, linux-kernel, Luca Weiss,
	Dmitry Baryshkov, Stephan Gerhold


On Fri, 25 Jul 2025 22:02:58 +0200, Barnabás Czémán wrote:
> 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.
> 
> 

Applied, thanks!

[1/1] rpmsg: qcom_smd: Fix fallback to qcom,ipc parse
      commit: 09390ed9af37ed612dd0967ff2b0d639872b8776

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-22 14:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-25 20:02 [PATCH v2] rpmsg: qcom_smd: Fix fallback to qcom,ipc parse Barnabás Czémán
2025-09-22 14:00 ` Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®