From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: arapaille@atlr-engineering.com,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>, Luca Weiss <luca@lucaweiss.eu>
Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] soc: qcom: smsm: Don't log an error for hosts without a mailbox
Date: Tue, 1 Dec 2026 12:59:59 +0100 [thread overview]
Message-ID: <b10691b7-d191-4067-ab8d-bbab2885a7d1@oss.qualcomm.com> (raw)
In-Reply-To: <20261126-smsm-null-mbox-v1-1-f6c6dcc2a3bf@atlr-engineering.com>
On 11/26/26 2:45 PM, Alexandre Rapaille via B4 Relay wrote:
> From: Alexandre Rapaille <arapaille@atlr-engineering.com>
>
> smsm_parse_mbox() calls mbox_request_channel() for every host, so the
> mailbox core logs an error for each host that has no mailbox before smsm
> falls back to qcom,ipc. On msm8974 SMEM reports 5 hosts while mboxes has
> 4 entries, the first a null placeholder for the local host, so every
> boot prints twice:
>
> qcom-smsm smsm: mbox_request_channel: can't parse "mboxes" property
>
> Check the entry first and fall back quietly when it is null or missing.
>
> Tested on a Fairphone 2: both lines are gone, hosts 1-3 still use their
> mailboxes, and the modem comes back after forced restarts.
>
> Fixes: 75287992f58a ("soc: qcom: smsm: Support using mailbox interface")
> Signed-off-by: Alexandre Rapaille <arapaille@atlr-engineering.com>
> ---
[...]
> + /* Hosts without a mailbox have a null or no entry: fall back quietly */
> + ret = of_parse_phandle_with_args(smsm->dev->of_node, "mboxes", "#mbox-cells",
> + host_id, &args);
> + if (ret)
> + return ret;
> + of_node_put(args.np);
>
> host->mbox_chan = mbox_request_channel(&smsm->mbox_client, host_id);
Would the above returning -ENOENT not mean the same?
Konrad
prev parent reply other threads:[~2026-12-01 12:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 13:45 Alexandre Rapaille via B4 Relay
2026-12-01 11:59 ` Konrad Dybcio [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b10691b7-d191-4067-ab8d-bbab2885a7d1@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=arapaille@atlr-engineering.com \
--cc=konradybcio@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luca@lucaweiss.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®