Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: btusb: Add USB ID 0e8d:e028 for MediaTek MT7928
@ 2026-11-24  2:23 Chris Lu
  2026-11-24  2:23 ` [PATCH] Bluetooth: btusb: Do not set BROKEN_ENHANCED_SETUP_SYNC_CONN for newer MediaTek chips Chris Lu
  2026-11-24  7:08 ` Bluetooth: btusb: Add USB ID 0e8d:e028 for MediaTek MT7928 bluez.test.bot
  0 siblings, 2 replies; 4+ messages in thread
From: Chris Lu @ 2026-11-24  2:23 UTC (permalink / raw)
  To: Marcel Holtmann, Johan Hedberg, Luiz Von Dentz
  Cc: Hao Qin, Sean Wang, Will Lee, SS Wu, linux-bluetooth,
	linux-kernel, linux-mediatek, Chris Lu

Add the USB device ID of the MediaTek MT7928 Bluetooth controller.
MT7928 is the marketing name of the chip, which identifies itself as
MT7935 (chip ID 0x7935) in hardware.

The hardware ID of the Bluetooth interface is:

USB\VID_0E8D&PID_E028&MI_00

Signed-off-by: Chris Lu <chris.lu@mediatek.com>
---
 drivers/bluetooth/btusb_main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/bluetooth/btusb_main.c b/drivers/bluetooth/btusb_main.c
index 95398e2ca098..e94a5d0ca1ec 100644
--- a/drivers/bluetooth/btusb_main.c
+++ b/drivers/bluetooth/btusb_main.c
@@ -848,6 +848,10 @@ static const struct usb_device_id quirks_table[] = {
 	{ USB_DEVICE(0x2c7c, 0x7009), .driver_info = BTUSB_MEDIATEK |
 						     BTUSB_WIDEBAND_SPEECH },
 
+	/* MediaTek MT7928 (MT7935) Bluetooth devices */
+	{ USB_DEVICE(0x0e8d, 0xe028), .driver_info = BTUSB_MEDIATEK |
+						     BTUSB_WIDEBAND_SPEECH },
+
 	/* Additional Realtek 8723AE Bluetooth devices */
 	{ USB_DEVICE(0x0930, 0x021d), .driver_info = BTUSB_REALTEK },
 	{ USB_DEVICE(0x13d3, 0x3394), .driver_info = BTUSB_REALTEK },
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] Bluetooth: btusb: Do not set BROKEN_ENHANCED_SETUP_SYNC_CONN for newer MediaTek chips
  2026-11-24  2:23 [PATCH] Bluetooth: btusb: Add USB ID 0e8d:e028 for MediaTek MT7928 Chris Lu
@ 2026-11-24  2:23 ` Chris Lu
  2026-11-24  7:02   ` bluez.test.bot
  2026-11-24  7:08 ` Bluetooth: btusb: Add USB ID 0e8d:e028 for MediaTek MT7928 bluez.test.bot
  1 sibling, 1 reply; 4+ messages in thread
From: Chris Lu @ 2026-11-24  2:23 UTC (permalink / raw)
  To: Marcel Holtmann, Johan Hedberg, Luiz Von Dentz
  Cc: Hao Qin, Sean Wang, Will Lee, SS Wu, linux-bluetooth,
	linux-kernel, linux-mediatek, Chris Lu

HCI_QUIRK_BROKEN_ENHANCED_SETUP_SYNC_CONN was set for every MediaTek
controller, which makes the host fall back to HCI_OP_SETUP_SYNC_CONN
for SCO connections. MT7921/MT7920 and the older MT7663/MT7668 need
this fallback, but the chips released after MT7921 are expected to
handle HCI_OP_ENHANCED_SETUP_SYNC_CONN properly. Note that the chip
model number does not follow the release order.

Set the quirk in btusb_mtk_setup() only when the chip ID read from the
controller is 0x7663, 0x7668 or 0x7961, so the behavior of these chips
is unchanged. MT7920 reports the same chip ID (0x7961) as MT7921, so it
keeps the quirk as well.

For MT7922 and MT7925, verified that with the quirk removed the host
uses HCI_OP_ENHANCED_SETUP_SYNC_CONN to set up SCO connections and no
problem was observed. The chips released after them are not expected to
need the quirk either.

Signed-off-by: Chris Lu <chris.lu@mediatek.com>
---
 drivers/bluetooth/btusb_main.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/bluetooth/btusb_main.c b/drivers/bluetooth/btusb_main.c
index 95398e2ca098..f0ced6e3192f 100644
--- a/drivers/bluetooth/btusb_main.c
+++ b/drivers/bluetooth/btusb_main.c
@@ -3205,6 +3205,12 @@ static int btusb_mtk_setup(struct hci_dev *hdev)
 		if (platform_is_ryzen() && is_direct_child_of_root_hub(data->udev))
 			set_bit(BTUSB_WAKEUP_BROKEN, &data->flags);
 		break;
+	case 0x7663:
+	case 0x7668:
+	case 0x7961:
+		/* SCO does not work with HCI_OP_ENHANCED_SETUP_SYNC_CONN */
+		hci_set_quirk(hdev, HCI_QUIRK_BROKEN_ENHANCED_SETUP_SYNC_CONN);
+		break;
 	}
 
 	return 0;
@@ -4621,7 +4627,6 @@ static int btusb_probe(struct usb_interface *intf,
 		hdev->reset = btmtk_reset_sync;
 		hdev->set_bdaddr = btmtk_set_bdaddr;
 		hdev->send = btusb_send_frame_mtk;
-		hci_set_quirk(hdev, HCI_QUIRK_BROKEN_ENHANCED_SETUP_SYNC_CONN);
 		hci_set_quirk(hdev, HCI_QUIRK_NON_PERSISTENT_SETUP);
 		data->recv_acl = btmtk_usb_recv_acl;
 		data->recv_event = btmtk_recv_event;
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* RE: Bluetooth: btusb: Do not set BROKEN_ENHANCED_SETUP_SYNC_CONN for newer MediaTek chips
  2026-11-24  2:23 ` [PATCH] Bluetooth: btusb: Do not set BROKEN_ENHANCED_SETUP_SYNC_CONN for newer MediaTek chips Chris Lu
@ 2026-11-24  7:02   ` bluez.test.bot
  0 siblings, 0 replies; 4+ messages in thread
From: bluez.test.bot @ 2026-11-24  7:02 UTC (permalink / raw)
  To: linux-bluetooth, chris.lu

[-- Attachment #1: Type: text/plain, Size: 1321 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/1220275/

---Test result---

Test Summary:
CheckPatch                    PASS      0.57 seconds
VerifyFixes                   PASS      0.09 seconds
VerifySignedoff               PASS      0.09 seconds
GitLint                       FAIL      0.26 seconds
SubjectPrefix                 PASS      0.09 seconds
BuildKernel                   PASS      24.15 seconds
CheckAllWarning               PASS      27.37 seconds
CheckSparse                   PASS      28.76 seconds
BuildKernel32                 PASS      23.56 seconds
CheckKernelLLVM               PASS      23.76 seconds
TestRunnerSetup               PASS      560.25 seconds
IncrementalBuild              PASS      22.58 seconds

Details
##############################
Test: GitLint - FAIL
Desc: Run gitlint
Output:
Bluetooth: btusb: Do not set BROKEN_ENHANCED_SETUP_SYNC_CONN for newer MediaTek chips

1: T1 Title exceeds max length (85>80): "Bluetooth: btusb: Do not set BROKEN_ENHANCED_SETUP_SYNC_CONN for newer MediaTek chips"


https://github.com/bluez/bluetooth-next/pull/1209

---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Bluetooth: btusb: Add USB ID 0e8d:e028 for MediaTek MT7928
  2026-11-24  2:23 [PATCH] Bluetooth: btusb: Add USB ID 0e8d:e028 for MediaTek MT7928 Chris Lu
  2026-11-24  2:23 ` [PATCH] Bluetooth: btusb: Do not set BROKEN_ENHANCED_SETUP_SYNC_CONN for newer MediaTek chips Chris Lu
@ 2026-11-24  7:08 ` bluez.test.bot
  1 sibling, 0 replies; 4+ messages in thread
From: bluez.test.bot @ 2026-11-24  7:08 UTC (permalink / raw)
  To: linux-bluetooth, chris.lu

[-- Attachment #1: Type: text/plain, Size: 1020 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/1220274/

---Test result---

Test Summary:
CheckPatch                    PASS      0.67 seconds
VerifyFixes                   PASS      0.10 seconds
VerifySignedoff               PASS      0.10 seconds
GitLint                       PASS      0.28 seconds
SubjectPrefix                 PASS      0.09 seconds
BuildKernel                   PASS      31.19 seconds
CheckAllWarning               PASS      35.36 seconds
CheckSparse                   PASS      37.86 seconds
BuildKernel32                 PASS      31.25 seconds
CheckKernelLLVM               PASS      34.61 seconds
TestRunnerSetup               PASS      755.09 seconds
IncrementalBuild              PASS      29.19 seconds



https://github.com/bluez/bluetooth-next/pull/1208

---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-24  7:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24  2:23 [PATCH] Bluetooth: btusb: Add USB ID 0e8d:e028 for MediaTek MT7928 Chris Lu
2026-11-24  2:23 ` [PATCH] Bluetooth: btusb: Do not set BROKEN_ENHANCED_SETUP_SYNC_CONN for newer MediaTek chips Chris Lu
2026-11-24  7:02   ` bluez.test.bot
2026-11-24  7:08 ` Bluetooth: btusb: Add USB ID 0e8d:e028 for MediaTek MT7928 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