From: Bjorn Andersson <quic_bjorande@quicinc.com>
To: Luca Weiss <luca@z3ntu.xyz>
Cc: <~postmarketos/upstreaming@lists.sr.ht>,
<phone-devel@vger.kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
<linux-arm-msm@vger.kernel.org>,
<linux-remoteproc@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>
Subject: Re: [PATCH 1/7] rpmsg: qcom_smd: Don't print error during probe deferral
Date: Wed, 24 Apr 2024 09:54:50 -0700 [thread overview]
Message-ID: <Zik5WuYgJap2RVC5@hu-bjorande-lv.qualcomm.com> (raw)
In-Reply-To: <20240424-apcs-mboxes-v1-1-6556c47cb501@z3ntu.xyz>
On Wed, Apr 24, 2024 at 06:23:54PM +0200, Luca Weiss wrote:
> When the mailbox driver has not probed yet, skip printing the error
> message since it's just going to confuse users.
>
> Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
> ---
> drivers/rpmsg/qcom_smd.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c
> index 43f601c84b4f..6fc299657adf 100644
> --- a/drivers/rpmsg/qcom_smd.c
> +++ b/drivers/rpmsg/qcom_smd.c
> @@ -1502,7 +1502,8 @@ struct qcom_smd_edge *qcom_smd_register_edge(struct device *parent,
>
> ret = qcom_smd_parse_edge(&edge->dev, node, edge);
> if (ret) {
> - dev_err(&edge->dev, "failed to parse smd edge\n");
> + if (ret != -EPROBE_DEFER)
> + dev_err(&edge->dev, "failed to parse smd edge\n");
In the described case, this error message would not be entirely
accurate, and the cause is not accurately captured in devices_deferred.
Unless I'm mistaken, it seems like qcom_smd_parse_edge() will also print
a more useful error in every other case, except after the mbox_chan !=
-ENODEV check..
How about making that:
if (PTR_ERR(edge->mbox_chan) != -ENODEV) {
ret = dev_err_probe(dev, PTR_ERR(edge->mbox_chan),
"failed to acquire IPC mailbox\n");
goto put_node;
}
And then drop the error print here in qcom_smd_register_edge().
It would bring us the devices_deferred tracking, and it would avoid the
double print in all other cases.
Regards,
Bjorn
> goto unregister_dev;
> }
>
>
> --
> 2.44.0
>
next prev parent reply other threads:[~2024-04-24 16:55 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-24 16:23 [PATCH 0/7] Use mboxes instead of syscon for APCS (arm32 & arm64) Luca Weiss
2024-04-24 16:23 ` [PATCH 1/7] rpmsg: qcom_smd: Don't print error during probe deferral Luca Weiss
2024-04-24 16:54 ` Bjorn Andersson [this message]
2024-04-24 16:23 ` [PATCH 2/7] ARM: dts: qcom: msm8974: Use mboxes properties for APCS Luca Weiss
2024-04-24 20:13 ` Konrad Dybcio
2024-04-24 16:23 ` [PATCH 3/7] arm64: dts: qcom: msm8916: " Luca Weiss
2024-04-24 20:14 ` Konrad Dybcio
2024-04-24 16:23 ` [PATCH 4/7] arm64: dts: qcom: msm8939: " Luca Weiss
2024-04-24 20:14 ` Konrad Dybcio
2024-04-24 16:23 ` [PATCH 5/7] arm64: dts: qcom: msm8953: " Luca Weiss
2024-04-24 20:14 ` Konrad Dybcio
2024-04-24 16:23 ` [PATCH 6/7] arm64: dts: qcom: msm8976: " Luca Weiss
2024-04-24 20:14 ` Konrad Dybcio
2024-04-24 16:24 ` [PATCH 7/7] arm64: dts: qcom: msm8994: " Luca Weiss
2024-04-24 20:15 ` Konrad Dybcio
2024-04-24 16:37 ` [PATCH 0/7] Use mboxes instead of syscon for APCS (arm32 & arm64) Luca Weiss
2024-04-24 16:55 ` Bjorn Andersson
2024-06-04 20:34 ` (subset) " Bjorn Andersson
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=Zik5WuYgJap2RVC5@hu-bjorande-lv.qualcomm.com \
--to=quic_bjorande@quicinc.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=luca@z3ntu.xyz \
--cc=mathieu.poirier@linaro.org \
--cc=phone-devel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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