Bluetooth: btusb: Add support for Mercusys MA530 Bluetooth adapter
PATCH 1/1 Bluetooth: btusb: Add support for Mercusys MA530 Bluetooth adapter
Add support for the Realtek-based Mercusys MA530 Bluetooth 5.3 USB dongle.
The device with USB ID 2c4e:0115 was not recognized by the kernel and thus was non-functional. This patch adds the device to the quirks table with BTUSB_REALTEK and BTUSB_WIDEBAND_SPEECH flags, enabling full functionality.
Tested on:
- Fedora 43, kernel 6.18.3-200.fc43.x86_64
- Device: Mercusys MA530 Adapter (USB ID 2c4e:0115)
- Firmware: rtl8761bu
--- drivers/bluetooth/btusb.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/bluetooth/btusb.c +4 -0
@@ -560,6 +560,10 @@ static const struct usb_device_id quirks_table[] = { { USB_DEVICE(0x0489, 0xe122), .driver_info = BTUSB_REALTEK | BTUSB_WIDEBAND_SPEECH }, + /* Mercusys MA530 Adapter */ + { USB_DEVICE(0x2c4e, 0x0115), .driver_info = BTUSB_REALTEK | + BTUSB_WIDEBAND_SPEECH }, + /* Realtek 8852BE Bluetooth devices */ { USB_DEVICE(0x0cb8, 0xc559), .driver_info = BTUSB_REALTEK | BTUSB_WIDEBAND_SPEECH },
--
2.52.0
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=1040804
---Test result---
Test Summary:
CheckPatch PENDING 0.32 seconds GitLint PENDING 0.24 seconds SubjectPrefix PASS 0.12 seconds BuildKernel PASS 25.74 seconds CheckAllWarning PASS 27.77 seconds CheckSparse PASS 31.28 seconds BuildKernel32 PASS 25.32 seconds TestRunnerSetup PASS 552.96 seconds TestRunner_l2cap-tester FAIL 51.73 seconds TestRunner_iso-tester PASS 77.27 seconds TestRunner_bnep-tester PASS 6.46 seconds TestRunner_mgmt-tester FAIL 130.05 seconds TestRunner_rfcomm-tester PASS 9.50 seconds TestRunner_sco-tester FAIL 14.59 seconds TestRunner_ioctl-tester PASS 10.32 seconds TestRunner_mesh-tester FAIL 10.63 seconds TestRunner_smp-tester PASS 8.54 seconds TestRunner_userchan-tester PASS 6.59 seconds IncrementalBuild PENDING 1.06 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: TestRunner_l2cap-tester - FAIL
Desc: Run l2cap-tester with test-runner Output:
Total: 96, Passed: 95 (99.0%), Failed: 1, Not Run: 0
Failed Test Cases
L2CAP LE Client - Close socket 2 Timed out 22.710 seconds
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner Output:
Total: 494, Passed: 486 (98.4%), Failed: 4, Not Run: 4
Failed Test Cases
Read Exp Feature - Success Failed 0.118 seconds LL Privacy - Add Device 2 (2 Devices to AL) Failed 0.193 seconds LL Privacy - Set Flags 2 (Enable RL) Failed 0.170 seconds LL Privacy - Set Flags 4 (RL is full) Failed 0.233 seconds
##############################
Test: TestRunner_sco-tester - FAIL
Desc: Run sco-tester with test-runner
Output:
WARNING: possible circular locking dependency detected
BUG: sleeping function called from invalid context at net/core/sock.c:3782
Total: 30, Passed: 30 (100.0%), Failed: 0, Not Run: 0
##############################
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 Failed 0.136 seconds Mesh - Send cancel - 2 Timed out 2.584 seconds
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:
---
Regards,
Linux Bluetooth
Dear Santiago,
Thank you for your patch. Some minor comments. For the summary, I suggest:
Bluetooth: btusb: Add id of RTL8761BU based Mercusys MA530 adapter
Am 11.01.26 um 08:37 schrieb Santiago Cruz:
Quoted 11 lines
Add support for the Realtek-based Mercusys MA530 Bluetooth 5.3 USB dongle.
The device with USB ID 2c4e:0115 was not recognized by the kernel and thus was non-functional. This patch adds the device to the quirks table with
BTUSB_REALTEKandBTUSB_WIDEBAND_SPEECHflags, enabling full functionality.Tested on:
- Fedora 43, kernel 6.18.3-200.fc43.x86_64
- Device: Mercusys MA530 Adapter (USB ID 2c4e:0115)
- Firmware: rtl8761bu
Which version?
It’s common to add the relevant output of /sys/kernel/debug/usb/devices. See git log drivers/bluetooth/ for examples.
Quoted 10 lines
Signed-off-by Santiago Cruz <[email protected]>--- drivers/bluetooth/btusb.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/bluetooth/btusb.c +0
-0
drivers/bluetooth/btusb.c static const struct usb_device_id quirks_table[] = { · line 566
Quoted 7 lines
drivers/bluetooth/btusb.c +4
-0@@ -560,6 +560,10 @@ static const struct usb_device_id quirks_table[] = { { USB_DEVICE(0x0489, 0xe122), .driver_info = BTUSB_REALTEK | BTUSB_WIDEBAND_SPEECH }, + /* Mercusys MA530 Adapter */ + { USB_DEVICE(0x2c4e, 0x0115), .driver_info = BTUSB_REALTEK | + BTUSB_WIDEBAND_SPEECH }, +
Should the new entry be sorted according to the id?
drivers/bluetooth/btusb.c static const struct usb_device_id quirks_table[] = { · line 569
Quoted 3 lines
drivers/bluetooth/btusb.c +0
-0/* Realtek 8852BE Bluetooth devices */ { USB_DEVICE(0x0cb8, 0xc559), .driver_info = BTUSB_REALTEK | BTUSB_WIDEBAND_SPEECH },
Kind regards,
Paul