* [PATCH v1] Bluetooth: btqca: Add WCN6855 firmware priority selection feature
@ 2025-11-12 7:46 Shuai Zhang
2025-11-12 8:41 ` [v1] " bluez.test.bot
2025-11-12 9:53 ` [PATCH v1] " Konrad Dybcio
0 siblings, 2 replies; 5+ messages in thread
From: Shuai Zhang @ 2025-11-12 7:46 UTC (permalink / raw)
To: Bartosz Golaszewski, Marcel Holtmann, Luiz Augusto von Dentz
Cc: linux-arm-msm, linux-bluetooth, linux-kernel, quic_chejiang,
quic_jiaymao, quic_chezhou, Shuai Zhang
For WCN6855: download wcnhpbtfwxx.tlv and wcnhpnvxx.xxx;
if they do not exist, download hpbtfwxx.tlv and hpnvxx.xxx instead.
Signed-off-by: Shuai Zhang <quic_shuaz@quicinc.com>
---
drivers/bluetooth/btqca.c | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c
index 7c958d606..cafdae903 100644
--- a/drivers/bluetooth/btqca.c
+++ b/drivers/bluetooth/btqca.c
@@ -848,7 +848,7 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
break;
case QCA_WCN6855:
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),
@@ -861,6 +861,13 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
}
err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
+
+ if (!rampatch_name && err < 0 && 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 < 0) {
bt_dev_err(hdev, "QCA Failed to download patch (%d)", err);
return err;
@@ -923,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,6 +943,13 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
}
err = qca_download_firmware(hdev, &config, soc_type, rom_ver);
+
+ if (!firmware_name && err < 0 && 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 < 0) {
bt_dev_err(hdev, "QCA Failed to download NVM (%d)", err);
return err;
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* RE: [v1] Bluetooth: btqca: Add WCN6855 firmware priority selection feature
2025-11-12 7:46 [PATCH v1] Bluetooth: btqca: Add WCN6855 firmware priority selection feature Shuai Zhang
@ 2025-11-12 8:41 ` bluez.test.bot
2025-11-12 9:53 ` [PATCH v1] " Konrad Dybcio
1 sibling, 0 replies; 5+ messages in thread
From: bluez.test.bot @ 2025-11-12 8:41 UTC (permalink / raw)
To: linux-bluetooth, quic_shuaz
[-- Attachment #1: Type: text/plain, Size: 2616 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=1022363
---Test result---
Test Summary:
CheckPatch PENDING 0.40 seconds
GitLint PENDING 0.41 seconds
SubjectPrefix PASS 0.06 seconds
BuildKernel PASS 25.77 seconds
CheckAllWarning PASS 27.97 seconds
CheckSparse PASS 31.95 seconds
BuildKernel32 PASS 25.03 seconds
TestRunnerSetup PASS 501.13 seconds
TestRunner_l2cap-tester PASS 24.11 seconds
TestRunner_iso-tester FAIL 43.27 seconds
TestRunner_bnep-tester PASS 6.09 seconds
TestRunner_mgmt-tester FAIL 118.50 seconds
TestRunner_rfcomm-tester PASS 9.21 seconds
TestRunner_sco-tester PASS 14.31 seconds
TestRunner_ioctl-tester PASS 9.87 seconds
TestRunner_mesh-tester FAIL 11.48 seconds
TestRunner_smp-tester PASS 8.37 seconds
TestRunner_userchan-tester PASS 6.64 seconds
IncrementalBuild PENDING 1.07 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: TestRunner_iso-tester - FAIL
Desc: Run iso-tester with test-runner
Output:
BUG: KASAN: slab-use-after-free in iso_conn_hold_unless_zero+0x76/0x1c0
Total: 141, Passed: 141 (100.0%), Failed: 0, Not Run: 0
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 492, Passed: 486 (98.8%), Failed: 2, Not Run: 4
Failed Test Cases
Read Exp Feature - Success Failed 0.104 seconds
LL Privacy - Add Device 3 (AL is full) Failed 0.195 seconds
##############################
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.968 seconds
Mesh - Send cancel - 2 Timed out 2.003 seconds
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1] Bluetooth: btqca: Add WCN6855 firmware priority selection feature
2025-11-12 7:46 [PATCH v1] Bluetooth: btqca: Add WCN6855 firmware priority selection feature Shuai Zhang
2025-11-12 8:41 ` [v1] " bluez.test.bot
@ 2025-11-12 9:53 ` Konrad Dybcio
2025-11-12 11:29 ` Shuai Zhang
1 sibling, 1 reply; 5+ messages in thread
From: Konrad Dybcio @ 2025-11-12 9:53 UTC (permalink / raw)
To: Shuai Zhang, Bartosz Golaszewski, Marcel Holtmann,
Luiz Augusto von Dentz
Cc: linux-arm-msm, linux-bluetooth, linux-kernel, quic_chejiang,
quic_jiaymao, quic_chezhou
On 11/12/25 8:46 AM, Shuai Zhang wrote:
> For WCN6855: download wcnhpbtfwxx.tlv and wcnhpnvxx.xxx;
> if they do not exist, download hpbtfwxx.tlv and hpnvxx.xxx instead.
>
> Signed-off-by: Shuai Zhang <quic_shuaz@quicinc.com>
> ---
Would these files be fundamentally any different, or is it a workaround
for someone else being creative with filenames?
Konrad
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1] Bluetooth: btqca: Add WCN6855 firmware priority selection feature
2025-11-12 9:53 ` [PATCH v1] " Konrad Dybcio
@ 2025-11-12 11:29 ` Shuai Zhang
2025-11-12 13:30 ` Konrad Dybcio
0 siblings, 1 reply; 5+ messages in thread
From: Shuai Zhang @ 2025-11-12 11:29 UTC (permalink / raw)
To: Konrad Dybcio, Bartosz Golaszewski, Marcel Holtmann,
Luiz Augusto von Dentz
Cc: linux-arm-msm, linux-bluetooth, linux-kernel, quic_chejiang,
quic_jiaymao, quic_chezhou
Hi Konrad
Thank you for your review.
On 11/12/2025 5:53 PM, Konrad Dybcio wrote:
> On 11/12/25 8:46 AM, Shuai Zhang wrote:
>> For WCN6855: download wcnhpbtfwxx.tlv and wcnhpnvxx.xxx;
>> if they do not exist, download hpbtfwxx.tlv and hpnvxx.xxx instead.
>>
>> Signed-off-by: Shuai Zhang <quic_shuaz@quicinc.com>
>> ---
>
> Would these files be fundamentally any different, or is it a workaround
> for someone else being creative with filenames?
>
The prefix “wcn” corresponds to the WCN685x chip, while entries without
the “wcn” prefix correspond to the QCA2066 chip. There are some feature
differences between the two.
However, due to historical reasons, the WCN685x chip has been using firmware
without the “wcn” prefix. We are now correcting the mapping between the chip
and its corresponding firmware.
If it is necessary to add a comment to explain this, I will submit a new patch.
> Konrad
Best,regard
Shuai
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1] Bluetooth: btqca: Add WCN6855 firmware priority selection feature
2025-11-12 11:29 ` Shuai Zhang
@ 2025-11-12 13:30 ` Konrad Dybcio
0 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2025-11-12 13:30 UTC (permalink / raw)
To: Shuai Zhang, Bartosz Golaszewski, Marcel Holtmann,
Luiz Augusto von Dentz
Cc: linux-arm-msm, linux-bluetooth, linux-kernel, quic_chejiang,
quic_jiaymao, quic_chezhou
On 11/12/25 12:29 PM, Shuai Zhang wrote:
> Hi Konrad
>
> Thank you for your review.
> On 11/12/2025 5:53 PM, Konrad Dybcio wrote:
>> On 11/12/25 8:46 AM, Shuai Zhang wrote:
>>> For WCN6855: download wcnhpbtfwxx.tlv and wcnhpnvxx.xxx;
>>> if they do not exist, download hpbtfwxx.tlv and hpnvxx.xxx instead.
>>>
>>> Signed-off-by: Shuai Zhang <quic_shuaz@quicinc.com>
>>> ---
>>
>> Would these files be fundamentally any different, or is it a workaround
>> for someone else being creative with filenames?
>>
>
> The prefix “wcn” corresponds to the WCN685x chip, while entries without
> the “wcn” prefix correspond to the QCA2066 chip. There are some feature
> differences between the two.
>
> However, due to historical reasons, the WCN685x chip has been using firmware
> without the “wcn” prefix. We are now correcting the mapping between the chip
> and its corresponding firmware.
>
> If it is necessary to add a comment to explain this, I will submit a new patch.
Yes, most definitely. Please add this both in the commit message and
a comment in the code
Konrad
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-11-12 13:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-12 7:46 [PATCH v1] Bluetooth: btqca: Add WCN6855 firmware priority selection feature Shuai Zhang
2025-11-12 8:41 ` [v1] " bluez.test.bot
2025-11-12 9:53 ` [PATCH v1] " Konrad Dybcio
2025-11-12 11:29 ` Shuai Zhang
2025-11-12 13:30 ` Konrad Dybcio
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.