mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Alexandre Rapaille <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-arm-msm@vger.kernel.org>,
	"linux-kernel@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: Wed, 2 Dec 2026 16:27:13 +0100	[thread overview]
Message-ID: <ea2b85e2-5fb5-4fc8-8395-34be9ef2c9fd@oss.qualcomm.com> (raw)
In-Reply-To: <VE1PR06MB7086AF2704E5A68CBC5FBE55854D2@VE1PR06MB7086.eurprd06.prod.outlook.com>

On 12/1/26 6:13 PM, Alexandre Rapaille wrote:
>>> +    /* 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?
> 
> It does, mbox_request_channel() returns the same -ENOENT. But it calls
> dev_err() before returning, so by the time smsm sees the error the line
> is already in the log:
> 
>         ret = fwnode_property_get_reference_args(fwnode, "mboxes", "#mbox-cells",
>                                                  0, index, &fwspec);
>         if (ret) {
>                 dev_err(dev, "%s: can't parse \"%s\" property\n", __func__, "mboxes");
>                 return ERR_PTR(ret);
>         }
> 
> The other option is to make that dev_err() quiet for -ENOENT in the
> mailbox core. That changes it for every client, so I kept the check in
> smsm. I can do it in the core instead if you prefer.

I think something like an _optional variant in the mbox core
would make sense here

Konrad

  reply	other threads:[~2026-12-02 15:27 UTC|newest]

Thread overview: 5+ 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
2026-12-01 17:13   ` Alexandre Rapaille
2026-12-02 15:27     ` Konrad Dybcio [this message]
2026-12-02 15:50       ` Alexandre Rapaille

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=ea2b85e2-5fb5-4fc8-8395-34be9ef2c9fd@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®