* [PATCH v5 0/2] Bluetooth: btqca: move WCN7850 WA and add WCN6855 firmware priority selection feature
@ 2025-12-31 7:58 Shuai Zhang
2025-12-31 7:58 ` [PATCH v5 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller Shuai Zhang
2025-12-31 7:58 ` [PATCH v5 2/2] Bluetooth: btqca: Add WCN6855 firmware priority selection feature Shuai Zhang
0 siblings, 2 replies; 11+ messages in thread
From: Shuai Zhang @ 2025-12-31 7:58 UTC (permalink / raw)
To: Bartosz Golaszewski, Marcel Holtmann, Luiz Augusto von Dentz
Cc: linux-arm-msm, linux-bluetooth, linux-kernel, cheng.jiang,
quic_chezhou, wei.deng, jinwang.li, mengshi.wu, shuai.zhang
patch1: Move WCN7850 workaround to the caller
patch2: Update WCN6855 firmware to use the new FW file and added a fallback mechanism.
Changes v5
- Separate move WCN7850 and add WCN6855 fw name commit.
- remove WCN7850 unuseless condition.
- Link to v4:
https://lore.kernel.org/all/20251226075621.3223336-1-shuai.zhang@oss.qualcomm.com/
Changed v4:
- move WCN7850 WA to the caller.
handle cases where the firmware cannot be found.
- Link to v3
https://lore.kernel.org/all/20251117021645.712753-1-shuai.zhang@oss.qualcomm.com/
changed v3:
- Remove CC satble
- Update commit
- add test steps and log
- Link to v2
https://lore.kernel.org/all/20251114081751.3940541-2-shuai.zhang@oss.qualcomm.com/
Changes v2:
- Add Fixes tag.
- Add comments in the commit and code to explain the reason for the changes.
- Link to v1
https://lore.kernel.org/all/20251112074638.1592864-1-quic_shuaz@quicinc.com/
Shuai Zhang (2):
Bluetooth: btqca: move WCN7850 workaround to the caller
Bluetooth: btqca: Add WCN6855 firmware priority selection feature
drivers/bluetooth/btqca.c | 66 ++++++++++++++++++++++++---------------
1 file changed, 41 insertions(+), 25 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v5 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller
2025-12-31 7:58 [PATCH v5 0/2] Bluetooth: btqca: move WCN7850 WA and add WCN6855 firmware priority selection feature Shuai Zhang
@ 2025-12-31 7:58 ` Shuai Zhang
2025-12-31 8:38 ` Paul Menzel
` (2 more replies)
2025-12-31 7:58 ` [PATCH v5 2/2] Bluetooth: btqca: Add WCN6855 firmware priority selection feature Shuai Zhang
1 sibling, 3 replies; 11+ messages in thread
From: Shuai Zhang @ 2025-12-31 7:58 UTC (permalink / raw)
To: Bartosz Golaszewski, Marcel Holtmann, Luiz Augusto von Dentz
Cc: linux-arm-msm, linux-bluetooth, linux-kernel, cheng.jiang,
quic_chezhou, wei.deng, jinwang.li, mengshi.wu, shuai.zhang
To code uniformity, move WCN7850 workaround to the caller.
Signed-off-by: Shuai Zhang <shuai.zhang@oss.qualcomm.com>
---
drivers/bluetooth/btqca.c | 41 +++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 21 deletions(-)
diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c
index 7c958d606..b4c0a018d 100644
--- a/drivers/bluetooth/btqca.c
+++ b/drivers/bluetooth/btqca.c
@@ -581,28 +581,11 @@ static int qca_download_firmware(struct hci_dev *hdev,
ret = request_firmware(&fw, config->fwname, &hdev->dev);
if (ret) {
- /* For WCN6750, if mbn file is not present then check for
- * tlv file.
- */
- if (soc_type == QCA_WCN6750 && config->type == ELF_TYPE_PATCH) {
- bt_dev_dbg(hdev, "QCA Failed to request file: %s (%d)",
- config->fwname, ret);
- config->type = TLV_TYPE_PATCH;
- snprintf(config->fwname, sizeof(config->fwname),
- "qca/msbtfw%02x.tlv", rom_ver);
- bt_dev_info(hdev, "QCA Downloading %s", config->fwname);
- ret = request_firmware(&fw, config->fwname, &hdev->dev);
- if (ret) {
- bt_dev_err(hdev, "QCA Failed to request file: %s (%d)",
- config->fwname, ret);
- return ret;
- }
- }
/* If the board-specific file is missing, try loading the default
* one, unless that was attempted already.
*/
- else if (config->type == TLV_TYPE_NVM &&
- qca_get_alt_nvm_file(config->fwname, sizeof(config->fwname))) {
+ if (config->type == TLV_TYPE_NVM &&
+ qca_get_alt_nvm_file(config->fwname, sizeof(config->fwname))) {
bt_dev_info(hdev, "QCA Downloading %s", config->fwname);
ret = request_firmware(&fw, config->fwname, &hdev->dev);
if (ret) {
@@ -862,8 +845,24 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
if (err < 0) {
- bt_dev_err(hdev, "QCA Failed to download patch (%d)", err);
- return err;
+ /* For WCN6750, if mbn file is not present then check for
+ * tlv file.
+ */
+ if (soc_type == QCA_WCN6750) {
+ bt_dev_dbg(hdev, "QCA Failed to request file: %s (%d)",
+ config.fwname, err);
+ config.type = TLV_TYPE_PATCH;
+ snprintf(config.fwname, sizeof(config.fwname),
+ "qca/msbtfw%02x.tlv", rom_ver);
+ bt_dev_info(hdev, "QCA Downloading %s", config.fwname);
+ err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
+ }
+
+ if (err) {
+ bt_dev_err(hdev, "QCA Failed to request file: %s (%d)",
+ config.fwname, err);
+ return err;
+ }
}
/* Give the controller some time to get ready to receive the NVM */
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v5 2/2] Bluetooth: btqca: Add WCN6855 firmware priority selection feature
2025-12-31 7:58 [PATCH v5 0/2] Bluetooth: btqca: move WCN7850 WA and add WCN6855 firmware priority selection feature Shuai Zhang
2025-12-31 7:58 ` [PATCH v5 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller Shuai Zhang
@ 2025-12-31 7:58 ` Shuai Zhang
2025-12-31 17:23 ` Dmitry Baryshkov
1 sibling, 1 reply; 11+ messages in thread
From: Shuai Zhang @ 2025-12-31 7:58 UTC (permalink / raw)
To: Bartosz Golaszewski, Marcel Holtmann, Luiz Augusto von Dentz
Cc: linux-arm-msm, linux-bluetooth, linux-kernel, cheng.jiang,
quic_chezhou, wei.deng, jinwang.li, mengshi.wu, shuai.zhang
Historically, WCN685x and QCA2066 shared the same firmware files.
Now, changes are planned for the firmware that will make it incompatible
with QCA2066, so a new firmware name is required for WCN685x.
Test Steps:
- Boot device
- Check the BTFW loading status via dmesg
Sanity pass and Test Log:
QCA Downloading qca/wcnhpbftfw21.tlv
Direct firmware load for qca/wcnhpbftfw21.tlv failed with error -2
QCA Downloading qca/hpbftfw21.tlv
Signed-off-by: Shuai Zhang <shuai.zhang@oss.qualcomm.com>
---
drivers/bluetooth/btqca.c | 25 +++++++++++++++++++++----
1 file changed, 21 insertions(+), 4 deletions(-)
diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c
index b4c0a018d..9383c8dde 100644
--- a/drivers/bluetooth/btqca.c
+++ b/drivers/bluetooth/btqca.c
@@ -830,8 +830,12 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
"qca/msbtfw%02x.mbn", rom_ver);
break;
case QCA_WCN6855:
+ /* Due to historical reasons, WCN685x chip has been using firmware
+ * without the "wcn" prefix. The mapping between the chip and its
+ * corresponding firmware has now been corrected.
+ */
snprintf(config.fwname, sizeof(config.fwname),
- "qca/hpbtfw%02x.tlv", rom_ver);
+ "qca/wcnhpbtfw%02x.tlv", rom_ver);
break;
case QCA_WCN7850:
snprintf(config.fwname, sizeof(config.fwname),
@@ -856,6 +860,10 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
"qca/msbtfw%02x.tlv", rom_ver);
bt_dev_info(hdev, "QCA Downloading %s", config.fwname);
err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
+ } else if (!rampatch_name && soc_type == QCA_WCN6855) {
+ snprintf(config.fwname, sizeof(config.fwname),
+ "qca/hpbtfw%02x.tlv", rom_ver);
+ err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
}
if (err) {
@@ -922,7 +930,7 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
case QCA_WCN6855:
qca_read_fw_board_id(hdev, &boardid);
qca_get_nvm_name_by_board(config.fwname, sizeof(config.fwname),
- "hpnv", soc_type, ver, rom_ver, boardid);
+ "wcnhpnv", soc_type, ver, rom_ver, boardid);
break;
case QCA_WCN7850:
qca_get_nvm_name_by_board(config.fwname, sizeof(config.fwname),
@@ -936,8 +944,17 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
if (err < 0) {
- bt_dev_err(hdev, "QCA Failed to download NVM (%d)", err);
- return err;
+ if (!firmware_name && soc_type == QCA_WCN6855) {
+ qca_get_nvm_name_by_board(config.fwname, sizeof(config.fwname),
+ "hpnv", soc_type, ver, rom_ver, boardid);
+ err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
+ }
+
+ if (err) {
+ bt_dev_err(hdev, "QCA Failed to request file: %s (%d)",
+ config.fwname, err);
+ return err;
+ }
}
switch (soc_type) {
--
2.34.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v5 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller
2025-12-31 7:58 ` [PATCH v5 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller Shuai Zhang
@ 2025-12-31 8:38 ` Paul Menzel
2026-01-05 3:01 ` Shuai Zhang
2025-12-31 8:44 ` Bluetooth: btqca: move WCN7850 WA and add WCN6855 firmware priority selection feature bluez.test.bot
2025-12-31 17:21 ` [PATCH v5 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller Dmitry Baryshkov
2 siblings, 1 reply; 11+ messages in thread
From: Paul Menzel @ 2025-12-31 8:38 UTC (permalink / raw)
To: Shuai Zhang
Cc: Bartosz Golaszewski, Marcel Holtmann, Luiz Augusto von Dentz,
linux-arm-msm, linux-bluetooth, linux-kernel, cheng.jiang,
quic_chezhou, wei.deng, jinwang.li, mengshi.wu
Dear Shuai,
Thank you for the patch.
Am 31.12.25 um 13:58 schrieb Shuai Zhang:
> To code uniformity, move WCN7850 workaround to the caller.
Please elaborate, and detail what WCN7850 workaround.
> Signed-off-by: Shuai Zhang <shuai.zhang@oss.qualcomm.com>
> ---
> drivers/bluetooth/btqca.c | 41 +++++++++++++++++++--------------------
> 1 file changed, 20 insertions(+), 21 deletions(-)
>
> diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c
> index 7c958d606..b4c0a018d 100644
> --- a/drivers/bluetooth/btqca.c
> +++ b/drivers/bluetooth/btqca.c
> @@ -581,28 +581,11 @@ static int qca_download_firmware(struct hci_dev *hdev,
>
> ret = request_firmware(&fw, config->fwname, &hdev->dev);
> if (ret) {
> - /* For WCN6750, if mbn file is not present then check for
> - * tlv file.
> - */
> - if (soc_type == QCA_WCN6750 && config->type == ELF_TYPE_PATCH) {
The `config->type == ELF_TYPE_PATCH` wasn’t moved, and it’s not visible
from the diff, why. Please explain in the commit message.
> - bt_dev_dbg(hdev, "QCA Failed to request file: %s (%d)",
> - config->fwname, ret);
> - config->type = TLV_TYPE_PATCH;
> - snprintf(config->fwname, sizeof(config->fwname),
> - "qca/msbtfw%02x.tlv", rom_ver);
> - bt_dev_info(hdev, "QCA Downloading %s", config->fwname);
> - ret = request_firmware(&fw, config->fwname, &hdev->dev);
> - if (ret) {
> - bt_dev_err(hdev, "QCA Failed to request file: %s (%d)",
> - config->fwname, ret);
> - return ret;
> - }
> - }
> /* If the board-specific file is missing, try loading the default
> * one, unless that was attempted already.
> */
> - else if (config->type == TLV_TYPE_NVM &&
> - qca_get_alt_nvm_file(config->fwname, sizeof(config->fwname))) {
> + if (config->type == TLV_TYPE_NVM &&
> + qca_get_alt_nvm_file(config->fwname, sizeof(config->fwname))) {
> bt_dev_info(hdev, "QCA Downloading %s", config->fwname);
> ret = request_firmware(&fw, config->fwname, &hdev->dev);
> if (ret) {
> @@ -862,8 +845,24 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
>
> err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
> if (err < 0) {
> - bt_dev_err(hdev, "QCA Failed to download patch (%d)", err);
> - return err;
> + /* For WCN6750, if mbn file is not present then check for
> + * tlv file.
> + */
> + if (soc_type == QCA_WCN6750) {
> + bt_dev_dbg(hdev, "QCA Failed to request file: %s (%d)",
> + config.fwname, err);
> + config.type = TLV_TYPE_PATCH;
> + snprintf(config.fwname, sizeof(config.fwname),
> + "qca/msbtfw%02x.tlv", rom_ver);
> + bt_dev_info(hdev, "QCA Downloading %s", config.fwname);
> + err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
> + }
> +
> + if (err) {
> + bt_dev_err(hdev, "QCA Failed to request file: %s (%d)",
> + config.fwname, err);
> + return err;
> + }
> }
>
> /* Give the controller some time to get ready to receive the NVM */
Kind regards,
Paul
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: Bluetooth: btqca: move WCN7850 WA and add WCN6855 firmware priority selection feature
2025-12-31 7:58 ` [PATCH v5 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller Shuai Zhang
2025-12-31 8:38 ` Paul Menzel
@ 2025-12-31 8:44 ` bluez.test.bot
2025-12-31 17:21 ` [PATCH v5 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller Dmitry Baryshkov
2 siblings, 0 replies; 11+ messages in thread
From: bluez.test.bot @ 2025-12-31 8:44 UTC (permalink / raw)
To: linux-bluetooth, shuai.zhang
[-- Attachment #1: Type: text/plain, Size: 2673 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1037566
---Test result---
Test Summary:
CheckPatch PENDING 0.30 seconds
GitLint PENDING 0.37 seconds
SubjectPrefix PASS 0.16 seconds
BuildKernel PASS 25.68 seconds
CheckAllWarning PASS 27.96 seconds
CheckSparse PASS 31.85 seconds
BuildKernel32 PASS 25.56 seconds
TestRunnerSetup PASS 564.34 seconds
TestRunner_l2cap-tester PASS 28.23 seconds
TestRunner_iso-tester PASS 71.91 seconds
TestRunner_bnep-tester PASS 6.26 seconds
TestRunner_mgmt-tester FAIL 124.44 seconds
TestRunner_rfcomm-tester PASS 9.48 seconds
TestRunner_sco-tester FAIL 16.60 seconds
TestRunner_ioctl-tester PASS 10.33 seconds
TestRunner_mesh-tester FAIL 11.42 seconds
TestRunner_smp-tester PASS 8.68 seconds
TestRunner_userchan-tester PASS 6.66 seconds
IncrementalBuild PENDING 0.80 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 494, Passed: 488 (98.8%), Failed: 2, Not Run: 4
Failed Test Cases
Read Exp Feature - Success Failed 0.106 seconds
LL Privacy - Add Device 3 (AL is full) Failed 0.205 seconds
##############################
Test: TestRunner_sco-tester - FAIL
Desc: Run sco-tester with test-runner
Output:
WARNING: possible circular locking dependency detected
BUG: sleeping function called from invalid context at net/core/sock.c:3782
Total: 30, Passed: 30 (100.0%), Failed: 0, Not Run: 0
##############################
Test: TestRunner_mesh-tester - FAIL
Desc: Run mesh-tester with test-runner
Output:
Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0
Failed Test Cases
Mesh - Send cancel - 1 Timed out 1.826 seconds
Mesh - Send cancel - 2 Timed out 1.995 seconds
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v5 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller
2025-12-31 7:58 ` [PATCH v5 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller Shuai Zhang
2025-12-31 8:38 ` Paul Menzel
2025-12-31 8:44 ` Bluetooth: btqca: move WCN7850 WA and add WCN6855 firmware priority selection feature bluez.test.bot
@ 2025-12-31 17:21 ` Dmitry Baryshkov
2 siblings, 0 replies; 11+ messages in thread
From: Dmitry Baryshkov @ 2025-12-31 17:21 UTC (permalink / raw)
To: Shuai Zhang
Cc: Bartosz Golaszewski, Marcel Holtmann, Luiz Augusto von Dentz,
linux-arm-msm, linux-bluetooth, linux-kernel, cheng.jiang,
quic_chezhou, wei.deng, jinwang.li, mengshi.wu
On Wed, Dec 31, 2025 at 03:58:16PM +0800, Shuai Zhang wrote:
> To code uniformity, move WCN7850 workaround to the caller.
>
> Signed-off-by: Shuai Zhang <shuai.zhang@oss.qualcomm.com>
> ---
> drivers/bluetooth/btqca.c | 41 +++++++++++++++++++--------------------
> 1 file changed, 20 insertions(+), 21 deletions(-)
>
> @@ -862,8 +845,24 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
>
> err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
> if (err < 0) {
> - bt_dev_err(hdev, "QCA Failed to download patch (%d)", err);
> - return err;
> + /* For WCN6750, if mbn file is not present then check for
> + * tlv file.
> + */
> + if (soc_type == QCA_WCN6750) {
You can move this one level up:
if (soc_type == QCA_WCN6750 && err) {
try TLV
}
if (err) {
bt_dev_err();
return err;
}
> + bt_dev_dbg(hdev, "QCA Failed to request file: %s (%d)",
> + config.fwname, err);
> + config.type = TLV_TYPE_PATCH;
> + snprintf(config.fwname, sizeof(config.fwname),
> + "qca/msbtfw%02x.tlv", rom_ver);
> + bt_dev_info(hdev, "QCA Downloading %s", config.fwname);
> + err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
> + }
> +
> + if (err) {
> + bt_dev_err(hdev, "QCA Failed to request file: %s (%d)",
> + config.fwname, err);
> + return err;
> + }
> }
>
> /* Give the controller some time to get ready to receive the NVM */
> --
> 2.34.1
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v5 2/2] Bluetooth: btqca: Add WCN6855 firmware priority selection feature
2025-12-31 7:58 ` [PATCH v5 2/2] Bluetooth: btqca: Add WCN6855 firmware priority selection feature Shuai Zhang
@ 2025-12-31 17:23 ` Dmitry Baryshkov
2026-01-05 3:36 ` Shuai Zhang
0 siblings, 1 reply; 11+ messages in thread
From: Dmitry Baryshkov @ 2025-12-31 17:23 UTC (permalink / raw)
To: Shuai Zhang
Cc: Bartosz Golaszewski, Marcel Holtmann, Luiz Augusto von Dentz,
linux-arm-msm, linux-bluetooth, linux-kernel, cheng.jiang,
quic_chezhou, wei.deng, jinwang.li, mengshi.wu
On Wed, Dec 31, 2025 at 03:58:17PM +0800, Shuai Zhang wrote:
> Historically, WCN685x and QCA2066 shared the same firmware files.
> Now, changes are planned for the firmware that will make it incompatible
> with QCA2066, so a new firmware name is required for WCN685x.
>
> Test Steps:
> - Boot device
> - Check the BTFW loading status via dmesg
>
> Sanity pass and Test Log:
> QCA Downloading qca/wcnhpbftfw21.tlv
> Direct firmware load for qca/wcnhpbftfw21.tlv failed with error -2
> QCA Downloading qca/hpbftfw21.tlv
>
> Signed-off-by: Shuai Zhang <shuai.zhang@oss.qualcomm.com>
> ---
> drivers/bluetooth/btqca.c | 25 +++++++++++++++++++++----
> 1 file changed, 21 insertions(+), 4 deletions(-)
> @@ -936,8 +944,17 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
>
> err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
> if (err < 0) {
> - bt_dev_err(hdev, "QCA Failed to download NVM (%d)", err);
> - return err;
> + if (!firmware_name && soc_type == QCA_WCN6855) {
Same comment as for the first patch: move this one level up,
incorporating err < 0 check.
> + qca_get_nvm_name_by_board(config.fwname, sizeof(config.fwname),
> + "hpnv", soc_type, ver, rom_ver, boardid);
> + err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
> + }
> +
> + if (err) {
> + bt_dev_err(hdev, "QCA Failed to request file: %s (%d)",
> + config.fwname, err);
> + return err;
> + }
> }
>
> switch (soc_type) {
> --
> 2.34.1
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v5 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller
2025-12-31 8:38 ` Paul Menzel
@ 2026-01-05 3:01 ` Shuai Zhang
0 siblings, 0 replies; 11+ messages in thread
From: Shuai Zhang @ 2026-01-05 3:01 UTC (permalink / raw)
To: Paul Menzel
Cc: Bartosz Golaszewski, Marcel Holtmann, Luiz Augusto von Dentz,
linux-arm-msm, linux-bluetooth, linux-kernel, cheng.jiang,
quic_chezhou, wei.deng, jinwang.li, mengshi.wu
Hi Paul
On 12/31/2025 4:38 PM, Paul Menzel wrote:
> Dear Shuai,
>
>
> Thank you for the patch.
>
> Am 31.12.25 um 13:58 schrieb Shuai Zhang:
>> To code uniformity, move WCN7850 workaround to the caller.
>
> Please elaborate, and detail what WCN7850 workaround.
>
I will update.
>> Signed-off-by: Shuai Zhang <shuai.zhang@oss.qualcomm.com>
>> ---
>> drivers/bluetooth/btqca.c | 41 +++++++++++++++++++--------------------
>> 1 file changed, 20 insertions(+), 21 deletions(-)
>>
>> diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c
>> index 7c958d606..b4c0a018d 100644
>> --- a/drivers/bluetooth/btqca.c
>> +++ b/drivers/bluetooth/btqca.c
>> @@ -581,28 +581,11 @@ static int qca_download_firmware(struct hci_dev
>> *hdev,
>> ret = request_firmware(&fw, config->fwname, &hdev->dev);
>> if (ret) {
>> - /* For WCN6750, if mbn file is not present then check for
>> - * tlv file.
>> - */
>> - if (soc_type == QCA_WCN6750 && config->type ==
>> ELF_TYPE_PATCH) {
>
> The `config->type == ELF_TYPE_PATCH` wasn’t moved, and it’s not
> visible from the diff, why. Please explain in the commit message.
If it is WCN7850, config.type is already set to ELF_TYPE_PATCH when
downloading the rampatch file.
Therefore, if (config.type == ELF_TYPE_PATCH) will always evaluate to true.
>
>> - bt_dev_dbg(hdev, "QCA Failed to request file: %s (%d)",
>> - config->fwname, ret);
>> - config->type = TLV_TYPE_PATCH;
>> - snprintf(config->fwname, sizeof(config->fwname),
>> - "qca/msbtfw%02x.tlv", rom_ver);
>> - bt_dev_info(hdev, "QCA Downloading %s", config->fwname);
>> - ret = request_firmware(&fw, config->fwname, &hdev->dev);
>> - if (ret) {
>> - bt_dev_err(hdev, "QCA Failed to request file: %s (%d)",
>> - config->fwname, ret);
>> - return ret;
>> - }
>> - }
>> /* If the board-specific file is missing, try loading the
>> default
>> * one, unless that was attempted already.
>> */
>> - else if (config->type == TLV_TYPE_NVM &&
>> - qca_get_alt_nvm_file(config->fwname,
>> sizeof(config->fwname))) {
>> + if (config->type == TLV_TYPE_NVM &&
>> + qca_get_alt_nvm_file(config->fwname,
>> sizeof(config->fwname))) {
>> bt_dev_info(hdev, "QCA Downloading %s", config->fwname);
>> ret = request_firmware(&fw, config->fwname, &hdev->dev);
>> if (ret) {
>> @@ -862,8 +845,24 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t
>> baudrate,
>> err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
>> if (err < 0) {
>> - bt_dev_err(hdev, "QCA Failed to download patch (%d)", err);
>> - return err;
>> + /* For WCN6750, if mbn file is not present then check for
>> + * tlv file.
>> + */
>> + if (soc_type == QCA_WCN6750) {
>> + bt_dev_dbg(hdev, "QCA Failed to request file: %s (%d)",
>> + config.fwname, err);
>> + config.type = TLV_TYPE_PATCH;
>> + snprintf(config.fwname, sizeof(config.fwname),
>> + "qca/msbtfw%02x.tlv", rom_ver);
>> + bt_dev_info(hdev, "QCA Downloading %s", config.fwname);
>> + err = qca_download_firmware(hdev, &config, soc_type,
>> rom_ver);
>> + }
>> +
>> + if (err) {
>> + bt_dev_err(hdev, "QCA Failed to request file: %s (%d)",
>> + config.fwname, err);
>> + return err;
>> + }
>> }
>> /* Give the controller some time to get ready to receive the
>> NVM */
>
>
> Kind regards,
>
> Paul
Kind regards,
Shuai
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v5 2/2] Bluetooth: btqca: Add WCN6855 firmware priority selection feature
2025-12-31 17:23 ` Dmitry Baryshkov
@ 2026-01-05 3:36 ` Shuai Zhang
0 siblings, 0 replies; 11+ messages in thread
From: Shuai Zhang @ 2026-01-05 3:36 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Bartosz Golaszewski, Marcel Holtmann, Luiz Augusto von Dentz,
linux-arm-msm, linux-bluetooth, linux-kernel, cheng.jiang,
quic_chezhou, wei.deng, jinwang.li, mengshi.wu
Dear
On 1/1/2026 1:23 AM, Dmitry Baryshkov wrote:
> On Wed, Dec 31, 2025 at 03:58:17PM +0800, Shuai Zhang wrote:
>> Historically, WCN685x and QCA2066 shared the same firmware files.
>> Now, changes are planned for the firmware that will make it incompatible
>> with QCA2066, so a new firmware name is required for WCN685x.
>>
>> Test Steps:
>> - Boot device
>> - Check the BTFW loading status via dmesg
>>
>> Sanity pass and Test Log:
>> QCA Downloading qca/wcnhpbftfw21.tlv
>> Direct firmware load for qca/wcnhpbftfw21.tlv failed with error -2
>> QCA Downloading qca/hpbftfw21.tlv
>>
>> Signed-off-by: Shuai Zhang <shuai.zhang@oss.qualcomm.com>
>> ---
>> drivers/bluetooth/btqca.c | 25 +++++++++++++++++++++----
>> 1 file changed, 21 insertions(+), 4 deletions(-)
>> @@ -936,8 +944,17 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
>>
>> err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
>> if (err < 0) {
>> - bt_dev_err(hdev, "QCA Failed to download NVM (%d)", err);
>> - return err;
>> + if (!firmware_name && soc_type == QCA_WCN6855) {
> Same comment as for the first patch: move this one level up,
> incorporating err < 0 check.
Thank you for your suggestion, I will update it.
>
>> + qca_get_nvm_name_by_board(config.fwname, sizeof(config.fwname),
>> + "hpnv", soc_type, ver, rom_ver, boardid);
>> + err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
>> + }
>> +
>> + if (err) {
>> + bt_dev_err(hdev, "QCA Failed to request file: %s (%d)",
>> + config.fwname, err);
>> + return err;
>> + }
>> }
>>
>> switch (soc_type) {
>> --
>> 2.34.1
>>
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: Bluetooth: btqca: move WCN7850 WA and add WCN6855 firmware priority selection feature
2026-01-05 5:56 [PATCH v6 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller Shuai Zhang
@ 2026-01-05 6:54 ` bluez.test.bot
0 siblings, 0 replies; 11+ messages in thread
From: bluez.test.bot @ 2026-01-05 6:54 UTC (permalink / raw)
To: linux-bluetooth, shuai.zhang
[-- Attachment #1: Type: text/plain, Size: 2674 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1038335
---Test result---
Test Summary:
CheckPatch PENDING 0.42 seconds
GitLint PENDING 0.36 seconds
SubjectPrefix PASS 0.15 seconds
BuildKernel PASS 26.20 seconds
CheckAllWarning PASS 28.28 seconds
CheckSparse PASS 31.63 seconds
BuildKernel32 PASS 25.72 seconds
TestRunnerSetup PASS 565.47 seconds
TestRunner_l2cap-tester PASS 28.97 seconds
TestRunner_iso-tester PASS 112.97 seconds
TestRunner_bnep-tester PASS 6.42 seconds
TestRunner_mgmt-tester FAIL 134.85 seconds
TestRunner_rfcomm-tester PASS 9.88 seconds
TestRunner_sco-tester FAIL 15.27 seconds
TestRunner_ioctl-tester PASS 10.77 seconds
TestRunner_mesh-tester FAIL 12.80 seconds
TestRunner_smp-tester PASS 9.16 seconds
TestRunner_userchan-tester PASS 6.83 seconds
IncrementalBuild PENDING 0.99 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 494, Passed: 488 (98.8%), Failed: 2, Not Run: 4
Failed Test Cases
Read Exp Feature - Success Failed 0.116 seconds
LL Privacy - Set Flags 3 (2 Devices to RL) Failed 0.196 seconds
##############################
Test: TestRunner_sco-tester - FAIL
Desc: Run sco-tester with test-runner
Output:
WARNING: possible circular locking dependency detected
BUG: sleeping function called from invalid context at net/core/sock.c:3782
Total: 30, Passed: 30 (100.0%), Failed: 0, Not Run: 0
##############################
Test: TestRunner_mesh-tester - FAIL
Desc: Run mesh-tester with test-runner
Output:
Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0
Failed Test Cases
Mesh - Send cancel - 1 Timed out 2.684 seconds
Mesh - Send cancel - 2 Timed out 1.996 seconds
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: Bluetooth: btqca: move WCN7850 WA and add WCN6855 firmware priority selection feature
2026-01-06 2:48 [PATCH v8 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller Shuai Zhang
@ 2026-01-06 3:34 ` bluez.test.bot
0 siblings, 0 replies; 11+ messages in thread
From: bluez.test.bot @ 2026-01-06 3:34 UTC (permalink / raw)
To: linux-bluetooth, shuai.zhang
[-- Attachment #1: Type: text/plain, Size: 2673 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1038770
---Test result---
Test Summary:
CheckPatch PENDING 0.45 seconds
GitLint PENDING 0.37 seconds
SubjectPrefix PASS 0.15 seconds
BuildKernel PASS 23.55 seconds
CheckAllWarning PASS 26.54 seconds
CheckSparse PASS 29.04 seconds
BuildKernel32 PASS 23.33 seconds
TestRunnerSetup PASS 511.59 seconds
TestRunner_l2cap-tester PASS 27.94 seconds
TestRunner_iso-tester PASS 79.87 seconds
TestRunner_bnep-tester PASS 6.33 seconds
TestRunner_mgmt-tester FAIL 124.17 seconds
TestRunner_rfcomm-tester PASS 9.41 seconds
TestRunner_sco-tester FAIL 14.58 seconds
TestRunner_ioctl-tester PASS 10.12 seconds
TestRunner_mesh-tester FAIL 12.48 seconds
TestRunner_smp-tester PASS 8.65 seconds
TestRunner_userchan-tester PASS 6.70 seconds
IncrementalBuild PENDING 0.89 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 494, Passed: 488 (98.8%), Failed: 2, Not Run: 4
Failed Test Cases
Read Exp Feature - Success Failed 0.106 seconds
LL Privacy - Set Flags 1 (Add to RL) Failed 0.146 seconds
##############################
Test: TestRunner_sco-tester - FAIL
Desc: Run sco-tester with test-runner
Output:
WARNING: possible circular locking dependency detected
BUG: sleeping function called from invalid context at net/core/sock.c:3782
Total: 30, Passed: 30 (100.0%), Failed: 0, Not Run: 0
##############################
Test: TestRunner_mesh-tester - FAIL
Desc: Run mesh-tester with test-runner
Output:
Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0
Failed Test Cases
Mesh - Send cancel - 1 Timed out 2.777 seconds
Mesh - Send cancel - 2 Timed out 2.002 seconds
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2026-01-06 3:34 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-31 7:58 [PATCH v5 0/2] Bluetooth: btqca: move WCN7850 WA and add WCN6855 firmware priority selection feature Shuai Zhang
2025-12-31 7:58 ` [PATCH v5 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller Shuai Zhang
2025-12-31 8:38 ` Paul Menzel
2026-01-05 3:01 ` Shuai Zhang
2025-12-31 8:44 ` Bluetooth: btqca: move WCN7850 WA and add WCN6855 firmware priority selection feature bluez.test.bot
2025-12-31 17:21 ` [PATCH v5 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller Dmitry Baryshkov
2025-12-31 7:58 ` [PATCH v5 2/2] Bluetooth: btqca: Add WCN6855 firmware priority selection feature Shuai Zhang
2025-12-31 17:23 ` Dmitry Baryshkov
2026-01-05 3:36 ` Shuai Zhang
-- strict thread matches above, loose matches on Subject: below --
2026-01-05 5:56 [PATCH v6 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller Shuai Zhang
2026-01-05 6:54 ` Bluetooth: btqca: move WCN7850 WA and add WCN6855 firmware priority selection feature bluez.test.bot
2026-01-06 2:48 [PATCH v8 1/2] Bluetooth: btqca: move WCN7850 workaround to the caller Shuai Zhang
2026-01-06 3:34 ` Bluetooth: btqca: move WCN7850 WA and add WCN6855 firmware priority selection feature bluez.test.bot
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).