Bluetooth: btusb: Add USB ID 0e8d:e028 for MediaTek MT7928
Subsystems (2)
PATCH 1/1 Bluetooth: btusb: Add USB ID 0e8d:e028 for MediaTek MT7928
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
--- drivers/bluetooth/btusb_main.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/bluetooth/btusb_main.c +4 -0
@@ -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 },
Signature · 1 line
2.45.2
PATCH 1/1 Bluetooth: btusb: Do not set BROKEN_ENHANCED_SETUP_SYNC_CONN for newer MediaTek chips
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.
--- drivers/bluetooth/btusb_main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/bluetooth/btusb_main.c +6 -1
@@ -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;
Signature · 1 line
2.45.2
RE: Bluetooth: btusb: Do not set BROKEN_ENHANCED_SETUP_SYNC_CONN for newer MediaTek chips
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
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