Linux bluetooth development
 help / color / mirror / Atom feed
* [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

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