* [PATCH DO NOT MERGE] Bluetooth: hci_qca: Detect QCC2072 on WCN7850 M.2 slot
@ 2026-12-03 5:45 Zijun Hu
2026-12-03 16:09 ` Luiz Augusto von Dentz
2026-12-04 2:07 ` [DO,NOT,MERGE] " bluez.test.bot
0 siblings, 2 replies; 3+ messages in thread
From: Zijun Hu @ 2026-12-03 5:45 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Zijun Hu, Zijun Hu
Glymur CRD attaches WCN7850 by default, but sometimes a QCC2072 M.2
card is inserted into the same slot, so QCC2072 BT is not working due
to the wrong BTSOC type.
Fix by correcting the BTSOC type according to the BTSOC version.
CRs-Fixed: 4767055
Signed-off-by: Zijun Hu <zijun.hu@oss.qualcomm.com>
---
Not for merge: board-specific hack for Glymur CRD with a QCC2072 M.2
card in the WCN7850 slot.
---
drivers/bluetooth/hci_qca.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index d51db761f5a6..a759a7059a2a 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -2031,16 +2031,24 @@ static int qca_setup(struct hci_uart *hu)
if (ret)
goto out;
break;
default:
qca_set_speed(hu, QCA_INIT_SPEED);
}
+ if (soc_type == QCA_WCN7850 && le32_to_cpu(ver.product_id) == 0x20) {
+ if (qcadev)
+ qcadev->btsoc_type = QCA_QCC2072;
+ soc_type = QCA_QCC2072;
+ soc_name = "qcc2072";
+ bt_dev_info(hdev, "Correct BTSOC to %s", soc_name);
+ }
+
/* Setup user speed if needed */
speed = qca_get_speed(hu, QCA_OPER_SPEED);
if (speed) {
ret = qca_set_speed(hu, QCA_OPER_SPEED);
if (ret)
goto out;
qca_baudrate = qca_get_baudrate_value(speed);
---
base-commit: 738af1958d2e7205008ca818352199ae8e454509
change-id: 20261202-gly_hmt_clg-c50c8712232e
Best regards,
--
Zijun Hu <zijun.hu@oss.qualcomm.com>
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH DO NOT MERGE] Bluetooth: hci_qca: Detect QCC2072 on WCN7850 M.2 slot
2026-12-03 5:45 [PATCH DO NOT MERGE] Bluetooth: hci_qca: Detect QCC2072 on WCN7850 M.2 slot Zijun Hu
@ 2026-12-03 16:09 ` Luiz Augusto von Dentz
2026-12-04 2:07 ` [DO,NOT,MERGE] " bluez.test.bot
1 sibling, 0 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2026-12-03 16:09 UTC (permalink / raw)
To: Zijun Hu; +Cc: linux-bluetooth, Zijun Hu
Hi Zijun,
On Thu, Dec 3, 2026 at 12:45 AM Zijun Hu <zijun.hu@oss.qualcomm.com> wrote:
>
> Glymur CRD attaches WCN7850 by default, but sometimes a QCC2072 M.2
> card is inserted into the same slot, so QCC2072 BT is not working due
> to the wrong BTSOC type.
>
> Fix by correcting the BTSOC type according to the BTSOC version.
>
> CRs-Fixed: 4767055
> Signed-off-by: Zijun Hu <zijun.hu@oss.qualcomm.com>
> ---
> Not for merge: board-specific hack for Glymur CRD with a QCC2072 M.2
> card in the WCN7850 slot.
Why bother sending this to the ml then?
> ---
> drivers/bluetooth/hci_qca.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
> index d51db761f5a6..a759a7059a2a 100644
> --- a/drivers/bluetooth/hci_qca.c
> +++ b/drivers/bluetooth/hci_qca.c
> @@ -2031,16 +2031,24 @@ static int qca_setup(struct hci_uart *hu)
> if (ret)
> goto out;
> break;
>
> default:
> qca_set_speed(hu, QCA_INIT_SPEED);
> }
>
> + if (soc_type == QCA_WCN7850 && le32_to_cpu(ver.product_id) == 0x20) {
> + if (qcadev)
> + qcadev->btsoc_type = QCA_QCC2072;
> + soc_type = QCA_QCC2072;
> + soc_name = "qcc2072";
> + bt_dev_info(hdev, "Correct BTSOC to %s", soc_name);
> + }
> +
> /* Setup user speed if needed */
> speed = qca_get_speed(hu, QCA_OPER_SPEED);
> if (speed) {
> ret = qca_set_speed(hu, QCA_OPER_SPEED);
> if (ret)
> goto out;
>
> qca_baudrate = qca_get_baudrate_value(speed);
>
> ---
> base-commit: 738af1958d2e7205008ca818352199ae8e454509
> change-id: 20261202-gly_hmt_clg-c50c8712232e
>
> Best regards,
> --
> Zijun Hu <zijun.hu@oss.qualcomm.com>
>
>
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 3+ messages in thread* RE: [DO,NOT,MERGE] Bluetooth: hci_qca: Detect QCC2072 on WCN7850 M.2 slot
2026-12-03 5:45 [PATCH DO NOT MERGE] Bluetooth: hci_qca: Detect QCC2072 on WCN7850 M.2 slot Zijun Hu
2026-12-03 16:09 ` Luiz Augusto von Dentz
@ 2026-12-04 2:07 ` bluez.test.bot
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2026-12-04 2:07 UTC (permalink / raw)
To: linux-bluetooth, zijun.hu
[-- Attachment #1: Type: text/plain, Size: 10496 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/series/1230200/
---Test result---
Test Summary:
CheckPatch PASS 0.58 seconds
VerifyFixes PASS 0.09 seconds
VerifySignedoff PASS 0.09 seconds
GitLint FAIL 0.25 seconds
SubjectPrefix PASS 0.09 seconds
BuildKernel FAIL 20.33 seconds
CheckAllWarning FAIL 22.22 seconds
CheckSparse FAIL 23.83 seconds
BuildKernel32 FAIL 19.82 seconds
CheckKernelLLVM FAIL 20.79 seconds
TestRunnerSetup FAIL 537.82 seconds
IncrementalBuild FAIL 18.85 seconds
Details
##############################
Test: GitLint - FAIL
Desc: Run gitlint
Output:
[DO,NOT,MERGE] Bluetooth: hci_qca: Detect QCC2072 on WCN7850 M.2 slot
24: B2 Line has trailing whitespace: "-- "
##############################
Test: BuildKernel - FAIL
Desc: Build Kernel for Bluetooth
Output:
drivers/bluetooth/hci_qca.c: In function ‘qca_setup’:
drivers/bluetooth/hci_qca.c:2041:46: error: ‘QCA_QCC2072’ undeclared (first use in this function); did you mean ‘QCA_QCA2066’?
2041 | qcadev->btsoc_type = QCA_QCC2072;
| ^~~~~~~~~~~
| QCA_QCA2066
drivers/bluetooth/hci_qca.c:2041:46: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [scripts/Makefile.build:290: drivers/bluetooth/hci_qca.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:572: drivers/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:572: drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/home/runner/work/bluetooth-next/bluetooth-next/src/src/Makefile:2243: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
##############################
Test: CheckAllWarning - FAIL
Desc: Run linux kernel with all warning enabled
Output:
drivers/bluetooth/hci_qca.c: In function ‘qca_setup’:
drivers/bluetooth/hci_qca.c:2041:46: error: ‘QCA_QCC2072’ undeclared (first use in this function); did you mean ‘QCA_QCA2066’?
2041 | qcadev->btsoc_type = QCA_QCC2072;
| ^~~~~~~~~~~
| QCA_QCA2066
drivers/bluetooth/hci_qca.c:2041:46: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [scripts/Makefile.build:290: drivers/bluetooth/hci_qca.o] Error 1
make[3]: *** [scripts/Makefile.build:572: drivers/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:572: drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/home/runner/work/bluetooth-next/bluetooth-next/src/src/Makefile:2243: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
##############################
Test: CheckSparse - FAIL
Desc: Run sparse tool with linux kernel
Output:
net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h):
./include/net/bluetooth/hci.h:3140:47: warning: array of flexible structures
./include/net/bluetooth/hci.h:3226:43: warning: array of flexible structures
drivers/bluetooth/hci_qca.c: In function ‘qca_setup’:
drivers/bluetooth/hci_qca.c:2041:46: error: ‘QCA_QCC2072’ undeclared (first use in this function); did you mean ‘QCA_QCA2066’?
2041 | qcadev->btsoc_type = QCA_QCC2072;
| ^~~~~~~~~~~
| QCA_QCA2066
drivers/bluetooth/hci_qca.c:2041:46: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [scripts/Makefile.build:290: drivers/bluetooth/hci_qca.o] Error 1
make[4]: *** Waiting for unfinished jobs....
drivers/bluetooth/hci_ag6xx.c:257:24: warning: restricted __le32 degrades to integer
make[3]: *** [scripts/Makefile.build:572: drivers/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:572: drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
net/bluetooth/hci_codec.c: note: in included file:
./include/net/bluetooth/hci_core.h:151:35: warning: array of flexible structures
net/bluetooth/sco.c: note: in included file:
./include/net/bluetooth/hci_core.h:151:35: warning: array of flexible structures
make[1]: *** [/home/runner/work/bluetooth-next/bluetooth-next/src/src/Makefile:2243: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
##############################
Test: BuildKernel32 - FAIL
Desc: Build 32bit Kernel for Bluetooth
Output:
drivers/bluetooth/hci_qca.c: In function ‘qca_setup’:
drivers/bluetooth/hci_qca.c:2041:46: error: ‘QCA_QCC2072’ undeclared (first use in this function); did you mean ‘QCA_QCA2066’?
2041 | qcadev->btsoc_type = QCA_QCC2072;
| ^~~~~~~~~~~
| QCA_QCA2066
drivers/bluetooth/hci_qca.c:2041:46: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [scripts/Makefile.build:290: drivers/bluetooth/hci_qca.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:572: drivers/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:572: drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/home/runner/work/bluetooth-next/bluetooth-next/src/src/Makefile:2243: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
##############################
Test: CheckKernelLLVM - FAIL
Desc: Build kernel with LLVM + context analysis
Output:
drivers/bluetooth/hci_qca.c:2041:25: error: use of undeclared identifier 'QCA_QCC2072'; did you mean 'QCA_QCA2066'?
2041 | qcadev->btsoc_type = QCA_QCC2072;
| ^~~~~~~~~~~
| QCA_QCA2066
drivers/bluetooth/btqca.h:156:2: note: 'QCA_QCA2066' declared here
156 | QCA_QCA2066,
| ^
drivers/bluetooth/hci_qca.c:2042:14: error: use of undeclared identifier 'QCA_QCC2072'; did you mean 'QCA_QCA2066'?
2042 | soc_type = QCA_QCC2072;
| ^~~~~~~~~~~
| QCA_QCA2066
drivers/bluetooth/btqca.h:156:2: note: 'QCA_QCA2066' declared here
156 | QCA_QCA2066,
| ^
2 errors generated.
make[4]: *** [scripts/Makefile.build:290: drivers/bluetooth/hci_qca.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:572: drivers/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:572: drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/home/runner/work/bluetooth-next/bluetooth-next/src/src/Makefile:2243: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
##############################
Test: TestRunnerSetup - FAIL
Desc: Setup kernel and bluez for test-runner
Output:
Kernel:
drivers/bluetooth/hci_qca.c: In function ‘qca_setup’:
drivers/bluetooth/hci_qca.c:2041:46: error: ‘QCA_QCC2072’ undeclared (first use in this function); did you mean ‘QCA_QCA2066’?
2041 | qcadev->btsoc_type = QCA_QCC2072;
| ^~~~~~~~~~~
| QCA_QCA2066
drivers/bluetooth/hci_qca.c:2041:46: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [scripts/Makefile.build:290: drivers/bluetooth/hci_qca.o] Error 1
make[3]: *** [scripts/Makefile.build:572: drivers/bluetooth] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:572: drivers] Error 2
make[1]: *** [/home/runner/work/bluetooth-next/bluetooth-next/src/src/Makefile:2243: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
##############################
Test: IncrementalBuild - FAIL
Desc: Incremental build with the patches in the series
Output:
drivers/bluetooth/hci_qca.c: In function ‘qca_setup’:
drivers/bluetooth/hci_qca.c:2041:46: error: ‘QCA_QCC2072’ undeclared (first use in this function); did you mean ‘QCA_QCA2066’?
2041 | qcadev->btsoc_type = QCA_QCC2072;
| ^~~~~~~~~~~
| QCA_QCA2066
drivers/bluetooth/hci_qca.c:2041:46: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [scripts/Makefile.build:290: drivers/bluetooth/hci_qca.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:572: drivers/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:572: drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/home/runner/work/bluetooth-next/bluetooth-next/src/src/Makefile:2243: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
[DO,NOT,MERGE] Bluetooth: hci_qca: Detect QCC2072 on WCN7850 M.2 slot
drivers/bluetooth/hci_qca.c: In function ‘qca_setup’:
drivers/bluetooth/hci_qca.c:2041:46: error: ‘QCA_QCC2072’ undeclared (first use in this function); did you mean ‘QCA_QCA2066’?
2041 | qcadev->btsoc_type = QCA_QCC2072;
| ^~~~~~~~~~~
| QCA_QCA2066
drivers/bluetooth/hci_qca.c:2041:46: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [scripts/Makefile.build:290: drivers/bluetooth/hci_qca.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:572: drivers/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:572: drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/home/runner/work/bluetooth-next/bluetooth-next/src/src/Makefile:2243: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
https://github.com/bluez/bluetooth-next/pull/1279
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-04 2:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 5:45 [PATCH DO NOT MERGE] Bluetooth: hci_qca: Detect QCC2072 on WCN7850 M.2 slot Zijun Hu
2026-12-03 16:09 ` Luiz Augusto von Dentz
2026-12-04 2:07 ` [DO,NOT,MERGE] " 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