From: Johan Hovold <johan@kernel.org>
To: Zijun Hu <zijun_hu@icloud.com>
Cc: Marcel Holtmann <marcel@holtmann.org>,
Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
Steev Klimaszewski <steev@kali.org>,
Bjorn Andersson <bjorande@quicinc.com>,
"Aiqun Yu (Maria)" <quic_aiquny@quicinc.com>,
Cheng Jiang <quic_chejiang@quicinc.com>,
Jens Glathe <jens.glathe@oldschoolsolutions.biz>,
Paul Menzel <pmenzel@molgen.mpg.de>,
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>,
linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org,
Zijun Hu <quic_zijuhu@quicinc.com>,
stable@vger.kernel.org
Subject: Re: [PATCH v3] Bluetooth: qca: Fix poor RF performance for WCN6855
Date: Mon, 13 Jan 2025 16:22:23 +0100 [thread overview]
Message-ID: <Z4Uvr3-FSvfILA7H@hovoldconsulting.com> (raw)
In-Reply-To: <dcc54536-87c0-49d4-ad6f-c47abf102136@icloud.com>
On Mon, Jan 13, 2025 at 11:15:13PM +0800, Zijun Hu wrote:
> On 2025/1/13 23:04, Johan Hovold wrote:
> >> case QCA_WCN6855:
> >> - snprintf(config.fwname, sizeof(config.fwname),
> >> - "qca/hpnv%02x.bin", rom_ver);
> >> + qca_read_fw_board_id(hdev, &boardid);
> > For consistency, this should probably have been handled by amending the
> > conditional above the switch:
> >
> > if (soc_type == QCA_QCA2066 || soc_type == QCA_WCN7850)
> > qca_read_fw_board_id(hdev, &boardid);
> qca_read_fw_board_id() may be invoked twice if adding reading board ID here
>
> see below branch:
>
> config.type = TLV_TYPE_NVM;
> if (firmware_name) {
> /* The firmware name has an extension, use it directly */
> if (qca_filename_has_extension(firmware_name)) {
> snprintf(config.fwname, sizeof(config.fwname), "qca/%s", firmware_name);
> } else {
> *qca_read_fw_board_id(hdev, &boardid);*
> qca_get_nvm_name_by_board(config.fwname, sizeof(config.fwname),
> firmware_name, soc_type, ver, 0, boardid);
> }
Fair enough (but I guess that would be the case also for
QCA2066/WCN7850 currently).
But either way, this is not something that should block this fix.
> > but long term that should probably be moved into
> > qca_get_nvm_name_by_board() to avoid sprinkling conditionals all over
> > the driver.
> >
> > I'm fine with this as a stop gap unless you want to move the call to the
> > QCA2066/WCN7850 conditional:
> >
> > Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Johan
next prev parent reply other threads:[~2025-01-13 15:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-13 14:43 [PATCH v3] Bluetooth: qca: Fix poor RF performance for WCN6855 Zijun Hu
2025-01-13 15:04 ` Johan Hovold
2025-01-13 15:11 ` Zijun Hu
2025-01-13 15:17 ` Johan Hovold
2025-01-13 15:15 ` Zijun Hu
2025-01-13 15:22 ` Johan Hovold [this message]
2025-01-13 15:33 ` [v3] " bluez.test.bot
2025-01-14 4:10 ` [PATCH v3] " Steev Klimaszewski
2025-01-14 17:20 ` patchwork-bot+bluetooth
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=Z4Uvr3-FSvfILA7H@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=bjorande@quicinc.com \
--cc=jens.glathe@oldschoolsolutions.biz \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=luiz.von.dentz@intel.com \
--cc=marcel@holtmann.org \
--cc=pmenzel@molgen.mpg.de \
--cc=quic_aiquny@quicinc.com \
--cc=quic_chejiang@quicinc.com \
--cc=quic_zijuhu@quicinc.com \
--cc=stable@vger.kernel.org \
--cc=steev@kali.org \
--cc=zijun_hu@icloud.com \
/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;
as well as URLs for NNTP newsgroup(s).