Re: [PATCH] soc: qcom: smsm: Don't log an error for hosts without a mailbox
From: Konrad Dybcio
Date: Tue Dec 01 2026 - 07:00:43 EST
On 11/26/26 2:45 PM, Alexandre Rapaille via B4 Relay wrote:
> From: Alexandre Rapaille <arapaille@xxxxxxxxxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxxxxxxxxx>
> ---
[...]
> + /* 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