From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>,
Jeff Johnson <jjohnson@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, linux-wireless@vger.kernel.org,
ath11k@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] wifi: ath11k: Silence remoteproc probe deferral prints
Date: Thu, 12 Feb 2026 16:01:21 +0100 [thread overview]
Message-ID: <f028462c-ae31-4fa5-b414-e03d3a73fdf4@oss.qualcomm.com> (raw)
In-Reply-To: <20260212-ath11k-silence-probe-deferr-v1-1-b8a49bb3c332@oss.qualcomm.com>
On 2/12/26 3:52 PM, Bjorn Andersson wrote:
> Upon failing to resolve the remoteproc phandle one ath11k_dbg() and one
> ath11k_err() is used to tell the user about the (presumably) temporary
> failure.
>
> Reduce the log spam by removing the duplicate print and switching to
> dev_err_probe(), in line with how ath12k handles this error.
>
> Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com>
> ---
> drivers/net/wireless/ath/ath11k/ahb.c | 10 +++-------
> 1 file changed, 3 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath11k/ahb.c b/drivers/net/wireless/ath/ath11k/ahb.c
> index 8dfe9b40c12626649639fc1dd9da0e5e0c2dcaf1..08d3a0c8f105b26b1548c5d6006f6ea162fe58ff 100644
> --- a/drivers/net/wireless/ath/ath11k/ahb.c
> +++ b/drivers/net/wireless/ath/ath11k/ahb.c
> @@ -807,10 +807,8 @@ static int ath11k_core_get_rproc(struct ath11k_base *ab)
> }
>
> prproc = rproc_get_by_phandle(rproc_phandle);
> - if (!prproc) {
> - ath11k_dbg(ab, ATH11K_DBG_AHB, "failed to get rproc, deferring\n");
> - return -EPROBE_DEFER;
> - }
> + if (!prproc)
> + return dev_err_probe(&ab->pdev->dev, -EPROBE_DEFER, "failed to get rproc\n");
I'd like to think this doesn't really change the behavior, but I'd rather
see this that in-house print functions..
> ab_ahb->tgt_rproc = prproc;
>
> return 0;
> @@ -1190,10 +1188,8 @@ static int ath11k_ahb_probe(struct platform_device *pdev)
> ath11k_ahb_init_qmi_ce_config(ab);
>
> ret = ath11k_core_get_rproc(ab);
> - if (ret) {
> - ath11k_err(ab, "failed to get rproc: %d\n", ret);
> + if (ret)
> goto err_ce_free;
> - }
If the rproc handle is unavailable at this point, we undo quite a bit of work
in .probe.. would it make sense to move this check way above?
Konrad
next prev parent reply other threads:[~2026-02-12 15:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-12 14:52 [PATCH] wifi: ath11k: Silence remoteproc probe deferral prints Bjorn Andersson
2026-02-12 15:01 ` Konrad Dybcio [this message]
2026-02-12 15:16 ` Bjorn Andersson
2026-02-12 15:24 ` Konrad Dybcio
2026-02-24 2:51 ` Baochen Qiang
2026-03-02 21:07 ` Jeff Johnson
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=f028462c-ae31-4fa5-b414-e03d3a73fdf4@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=ath11k@lists.infradead.org \
--cc=bjorn.andersson@oss.qualcomm.com \
--cc=jjohnson@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
/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