From: sashiko-bot@kernel.org
To: "Qianhui Xu" <xiaqinghuan@mail.ustc.edu.cn>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 2/2] Bluetooth: hci_qca: add WCN7861
Date: Sat, 05 Dec 2026 02:17:52 +0000 [thread overview]
Message-ID: <sashiko-outbox-250938@kernel.org> (raw)
In-Reply-To: <20261205015945.1695359-3-xiaqinghuan@mail.ustc.edu.cn>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] Bluetooth: hci_qca: WCN7861 8 Mbps max-speed silently mapped to
115200 bps
- [Medium] Bluetooth: hci_qca: WCN7861 falls back to WCN7850 firmware in
qca_uart_setup()
--
commit 2194e250fb59f2883c19b620ae0e9cc9454f43b9
Author: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
Bluetooth: hci_qca: add WCN7861
This commit adds the "qcom,wcn7861-bt" compatible string to
qca_bluetooth_of_match[] in hci_qca, reusing qca_soc_data_wcn7850.
> diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
> index d693e28427251..9ef4362e9406b 100644
> --- a/drivers/bluetooth/hci_qca.c
> +++ b/drivers/bluetooth/hci_qca.c
> @@ -2831,6 +2831,7 @@ static const struct of_device_id qca_bluetooth_of_match[] = {
> { .compatible = "qcom,wcn6750-bt", .data = &qca_soc_data_wcn6750},
> { .compatible = "qcom,wcn6855-bt", .data = &qca_soc_data_wcn6855},
> { .compatible = "qcom,wcn7850-bt", .data = &qca_soc_data_wcn7850},
> + { .compatible = "qcom,wcn7861-bt", .data = &qca_soc_data_wcn7850},
> { /* sentinel */ }
> };
> MODULE_DEVICE_TABLE(of, qca_bluetooth_of_match);
[Severity: Medium]
Can reusing qca_soc_data_wcn7850 cause qca_uart_setup() to download
WCN7850 firmware onto WCN7861 hardware?
Commit "dt-bindings: Bluetooth: add schema for Qualcomm WCN7861" leaves
firmware-name optional with minItems: 1, and qca_serdev_probe() ignores
the return value of device_property_read_string_array().
If a devicetree omits firmware-name or provides only the NVM entry,
qca_uart_setup() falls back to the QCA_WCN7850 defaults
(qca/hmtbtfw%02x.tlv and hmtnv), breaking controller initialization.
Should WCN7861 have its own soc_type with default firmware names, or
should the binding and qca_serdev_probe() require both firmware-name
entries?
[Severity: High]
Does qca_set_speed() desynchronize the UART baudrate when a WCN7861
devicetree sets max-speed = <8000000> as shown in the binding example?
qca_get_baudrate_value() has no 8 Mbps entry and falls back to
QCA_BAUDRATE_115200. qca_set_speed() then sets the controller to 115200
bps via qca_set_baudrate() and the host UART to 8000000 bps via
host_set_baudrate(), so later commands in qca_uart_setup() time out.
qca_setup() also passes QCA_BAUDRATE_115200 into qca_uart_setup(), which
patches the NVM baudrate tag with 115200 instead of 8000000.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205015945.1695359-1-xiaqinghuan@mail.ustc.edu.cn?part=2
prev parent reply other threads:[~2026-12-05 2:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 1:59 [PATCH 0/2] Bluetooth: qca: add WCN7861 support Qianhui Xu
2026-12-05 1:59 ` [PATCH 1/2] dt-bindings: Bluetooth: add schema for Qualcomm WCN7861 Qianhui Xu
2026-12-05 2:12 ` sashiko-bot
2026-12-05 1:59 ` [PATCH 2/2] Bluetooth: hci_qca: add WCN7861 Qianhui Xu
2026-12-05 2:17 ` sashiko-bot [this message]
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=sashiko-outbox-250938@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=xiaqinghuan@mail.ustc.edu.cn \
/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