Skip to contentSkip to conversation

Bluetooth: btusb: Add USB ID 13d3:3626 for RTL8851BE

PATCH Superseded Martin Luker-Brown 2 participants 4 messages Sep 12 – Sep 13 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bluetooth: btusb: Add USB ID 13d3:3626 for RTL8851BE

Teach btusb to recognize another IMC Networks / Realtek RTL8851BE Bluetooth radio variant.

Without BTUSB_REALTEK, the device enumerates and HCI comes up, but btrtl never loads rtl8851bu_fw.bin, so discovery finds no devices.

/sys/kernel/debug/usb/devices reports for this device:

T:  Bus=01 Lev=01 Prnt=01 Port=10 Cnt=02 Dev#=  3 Spd=12   MxCh= 0
D:  Ver= 1.00 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=13d3 ProdID=3626 Rev= 0.00
S:  Manufacturer=Realtek
S:  Product=Bluetooth Radio
S:  SerialNumber=00e04c000001
C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=1ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=   0 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=   0 Ivl=1ms

Tested on Dell Precision 7820 (Fedora 44, kernel 7.2.4) with the combo RTL8851BE Wi-Fi/BT card. After the quirk, dmesg shows:

Bluetooth: hci0: RTL: examining hci_ver=0c hci_rev=000b lmp_ver=0c lmp_subver=8851
Bluetooth: hci0: RTL: loading rtl_bt/rtl8851bu_fw.bin
Bluetooth: hci0: RTL: fw version 0x048ad230

and LE discovery/pairing works (Logitech M720 Triathlon).

---
 drivers/bluetooth/btusb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/bluetooth/btusb.c +1 -0
index 83d122de5..91e739c96 100644
@@ -549,6 +549,7 @@ static const struct usb_device_id quirks_table[] = {
 	{ USB_DEVICE(0x0bda, 0xb850), .driver_info = BTUSB_REALTEK },
 	{ USB_DEVICE(0x13d3, 0x3600), .driver_info = BTUSB_REALTEK },
 	{ USB_DEVICE(0x13d3, 0x3601), .driver_info = BTUSB_REALTEK },
+	{ USB_DEVICE(0x13d3, 0x3626), .driver_info = BTUSB_REALTEK },
 	{ USB_DEVICE(0x0489, 0xe112), .driver_info = BTUSB_REALTEK |
 						     BTUSB_WIDEBAND_SPEECH },
 
Signature · 1 line
2.53.0
#1 lore raw

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/1163612/

---Test result---

Test Summary:

CheckPatch                    FAIL      0.50 seconds
VerifyFixes                   PASS      0.09 seconds
VerifySignedoff               PASS      0.09 seconds
GitLint                       FAIL      0.23 seconds
SubjectPrefix                 PASS      0.08 seconds
BuildKernel                   PASS      20.29 seconds
CheckAllWarning               PASS      21.97 seconds
CheckSparse                   PASS      23.26 seconds
BuildKernel32                 PASS      19.10 seconds
CheckKernelLLVM               PASS      19.46 seconds
TestRunnerSetup               PASS      488.94 seconds
IncrementalBuild              PASS      19.89 seconds

Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
Bluetooth: btusb: Add USB ID 13d3:3626 for RTL8851BE
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?) #123:
Bluetooth: hci0: RTL: examining hci_ver=0c hci_rev=000b lmp_ver=0c lmp_subver=8851

total: 0 errors, 1 warnings, 7 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.

/github/workspace/src/patch/14810877.patch has style problems, please review.

NOTE: Ignored message types: UNKNOWN_COMMIT_ID

NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

##############################
Test: GitLint - FAIL
Desc: Run gitlint
Output:
Bluetooth: btusb: Add USB ID 13d3:3626 for RTL8851BE

29: B1 Line exceeds max length (84>80): " Bluetooth: hci0: RTL: examining hci_ver=0c hci_rev=000b lmp_ver=0c lmp_subver=8851"

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

---
Regards,
Linux Bluetooth

#2 lore raw

PATCH v2 1/1 Bluetooth: btusb: Add USB ID 13d3:3626 for RTL8851BE

In reply to Martin Luker-Brown

Teach btusb to recognize another IMC Networks / Realtek RTL8851BE Bluetooth radio variant.

Without BTUSB_REALTEK, the device enumerates and HCI comes up, but btrtl never loads rtl8851bu_fw.bin, so discovery finds no devices.

/sys/kernel/debug/usb/devices reports for this device:

T:  Bus=01 Lev=01 Prnt=01 Port=10 Cnt=02 Dev#=  3 Spd=12   MxCh= 0
D:  Ver= 1.00 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=13d3 ProdID=3626 Rev= 0.00
S:  Manufacturer=Realtek
S:  Product=Bluetooth Radio
S:  SerialNumber=00e04c000001
C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=1ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=   0 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=   0 Ivl=1ms

Tested on Dell Precision 7820 (Fedora 44, kernel 7.2.4) with the combo RTL8851BE Wi-Fi/BT card. After the quirk, dmesg shows:

Bluetooth: hci0: RTL: examining hci_ver=0c hci_rev=000b lmp_ver=0c lmp_subver=8851
Bluetooth: hci0: RTL: loading rtl_bt/rtl8851bu_fw.bin
Bluetooth: hci0: RTL: fw version 0x048ad230

and LE discovery/pairing works (Logitech M720 Triathlon).

v2: Wrap long dmesg line in the commit message so checkpatch/gitlint
stay within the 75/80 character limits.

---
 drivers/bluetooth/btusb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/bluetooth/btusb.c +1 -0
index 83d122de5..91e739c96 100644
@@ -549,6 +549,7 @@ static const struct usb_device_id quirks_table[] = {
 	{ USB_DEVICE(0x0bda, 0xb850), .driver_info = BTUSB_REALTEK },
 	{ USB_DEVICE(0x13d3, 0x3600), .driver_info = BTUSB_REALTEK },
 	{ USB_DEVICE(0x13d3, 0x3601), .driver_info = BTUSB_REALTEK },
+	{ USB_DEVICE(0x13d3, 0x3626), .driver_info = BTUSB_REALTEK },
 	{ USB_DEVICE(0x0489, 0xe112), .driver_info = BTUSB_REALTEK |
 						     BTUSB_WIDEBAND_SPEECH },
 
Signature · 1 line
2.55.0
#3 lore raw

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/1163708/

---Test result---

Test Summary:

CheckPatch                    PASS      0.49 seconds
VerifyFixes                   PASS      0.07 seconds
VerifySignedoff               PASS      0.07 seconds
GitLint                       PASS      0.22 seconds
SubjectPrefix                 PASS      0.07 seconds
BuildKernel                   PASS      21.51 seconds
CheckAllWarning               PASS      24.90 seconds
CheckSparse                   PASS      28.04 seconds
BuildKernel32                 PASS      21.64 seconds
CheckKernelLLVM               PASS      25.39 seconds
TestRunnerSetup               PASS      565.61 seconds
IncrementalBuild              PASS      20.79 seconds

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

---
Regards,
Linux Bluetooth