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 v2 2/2] Bluetooth: hci_qca: add WCN7861
Date: Sat, 05 Dec 2026 05:19:29 +0000 [thread overview]
Message-ID: <sashiko-outbox-251113@kernel.org> (raw)
In-Reply-To: <20261205050048.2994538-3-xiaqinghuan@mail.ustc.edu.cn>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] Bluetooth: hci_qca: WCN7861 falls back to WCN7850 firmware in
qca_uart_setup()
--
commit 5a874947a7ac653b0c540f9dcf6826f936bbdbac
Author: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
Bluetooth: hci_qca: add WCN7861
This commit adds a devicetree match entry for qcom,wcn7861-bt to the QCA
serdev driver, 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 WCN7861 to load WCN7850 firmware?
firmware-name is optional in qcom,wcn7861-bt.yaml (and the common binding
allows a single entry), and qca_serdev_probe() leaves omitted entries NULL.
qca_uart_setup() then falls back to QCA_WCN7850 defaults (qca/hmtbtfw%02x.tlv
and hmtnv), loading incompatible WCN7850 firmware onto WCN7861 hardware.
Relying on hardcoded firmware-name entries in the device tree also bypasses
ROM-version and board-ID selection in qca_get_nvm_name_by_board().
qca_setup() also logs "setting up wcn7850" when initializing WCN7861.
Should WCN7861 get its own QCA_WCN7861 soc_type with WCN7861 firmware
prefixes and soc_name, or enforce both firmware-name entries in the binding
and probe?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205050048.2994538-1-xiaqinghuan@mail.ustc.edu.cn?part=2
next prev parent reply other threads:[~2026-12-05 5:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 5:00 [PATCH v2 0/2] Bluetooth: qca: add WCN7861 support Qianhui Xu
2026-12-05 5:00 ` [PATCH v2 1/2] dt-bindings: bluetooth: qcom,wcn7861-bt: add binding Qianhui Xu
2026-12-05 5:13 ` sashiko-bot
2026-12-05 12:33 ` Bluetooth: qca: add WCN7861 support bluez.test.bot
2026-12-05 14:48 ` [PATCH v2 1/2] dt-bindings: bluetooth: qcom,wcn7861-bt: add binding Krzysztof Kozlowski
2026-12-05 5:00 ` [PATCH v2 2/2] Bluetooth: hci_qca: add WCN7861 Qianhui Xu
2026-12-05 5:19 ` sashiko-bot [this message]
2026-12-05 14:50 ` Krzysztof Kozlowski
2026-12-05 14:59 ` xiaqinghuan
2026-12-05 15:15 ` xiaqinghuan
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-251113@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.