diff mbox series

Bluetooth: btusb: Add support for 1358:c123 Realtek 8822CE device

Message ID 20201023231748.56519-1-julian@pidancet.net
State Accepted
Commit f496297e76a69db7b52257898570bd38b8b9c92b
Headers show
Series Bluetooth: btusb: Add support for 1358:c123 Realtek 8822CE device | expand

Commit Message

julian@pidancet.net Oct. 23, 2020, 11:17 p.m. UTC
From: Julian Pidancet <julian@pidancet.net>

Huawei Matebook 13 2020 AMD laptops (and probably other Matebook models)
are equiped with a RTL8822CE chip using the 1358:c123 USB identifiers.
This patch adds firmware loading support for it.

T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12   MxCh= 0
D:  Ver= 1.00 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1358 ProdID=c123 Rev= 0.00
S:  Manufacturer=Realtek
S:  Product=Bluetooth Radio
S:  SerialNumber=00e04c000001
C:* #Ifs= 2 Cfg#= 1 Atr=a0 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
I:  If#= 1 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=   9 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=   9 Ivl=1ms
I:  If#= 1 Alt= 2 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=  17 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  17 Ivl=1ms
I:  If#= 1 Alt= 3 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=  25 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  25 Ivl=1ms
I:  If#= 1 Alt= 4 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=  33 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  33 Ivl=1ms
I:  If#= 1 Alt= 5 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=03(O) Atr=01(Isoc) MxPS=  49 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  49 Ivl=1ms
Signed-off-by: Julian Pidancet <julian@pidancet.net>
---
 drivers/bluetooth/btusb.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Marcel Holtmann Nov. 9, 2020, 1 p.m. UTC | #1
Hi Julian,

> Huawei Matebook 13 2020 AMD laptops (and probably other Matebook models)

> are equiped with a RTL8822CE chip using the 1358:c123 USB identifiers.

> This patch adds firmware loading support for it.

> 

> T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12   MxCh= 0

> D:  Ver= 1.00 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=  1

> P:  Vendor=1358 ProdID=c123 Rev= 0.00

> S:  Manufacturer=Realtek

> S:  Product=Bluetooth Radio

> S:  SerialNumber=00e04c000001

> C:* #Ifs= 2 Cfg#= 1 Atr=a0 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

> I:  If#= 1 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

> E:  Ad=03(O) Atr=01(Isoc) MxPS=   9 Ivl=1ms

> E:  Ad=83(I) Atr=01(Isoc) MxPS=   9 Ivl=1ms

> I:  If#= 1 Alt= 2 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

> E:  Ad=03(O) Atr=01(Isoc) MxPS=  17 Ivl=1ms

> E:  Ad=83(I) Atr=01(Isoc) MxPS=  17 Ivl=1ms

> I:  If#= 1 Alt= 3 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

> E:  Ad=03(O) Atr=01(Isoc) MxPS=  25 Ivl=1ms

> E:  Ad=83(I) Atr=01(Isoc) MxPS=  25 Ivl=1ms

> I:  If#= 1 Alt= 4 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

> E:  Ad=03(O) Atr=01(Isoc) MxPS=  33 Ivl=1ms

> E:  Ad=83(I) Atr=01(Isoc) MxPS=  33 Ivl=1ms

> I:  If#= 1 Alt= 5 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

> E:  Ad=03(O) Atr=01(Isoc) MxPS=  49 Ivl=1ms

> E:  Ad=83(I) Atr=01(Isoc) MxPS=  49 Ivl=1ms

> Signed-off-by: Julian Pidancet <julian@pidancet.net>

> ---

> drivers/bluetooth/btusb.c | 1 +

> 1 file changed, 1 insertion(+)

> 

> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c

> index 1005b6e8f..0f40d185d 100644

> --- a/drivers/bluetooth/btusb.c

> +++ b/drivers/bluetooth/btusb.c

> @@ -427,6 +427,7 @@ static const struct usb_device_id blacklist_table[] = {

> 	/* Additional Realtek 8822CE Bluetooth devices */

> 	{ USB_DEVICE(0x04ca, 0x4005), .driver_info = BTUSB_REALTEK },

> 	{ USB_DEVICE(0x13d3, 0x3548), .driver_info = BTUSB_REALTEK },

> +	{ USB_DEVICE(0x1358, 0xc123), .driver_info = BTUSB_REALTEK },


patch does not apply cleanly against bluetooth-next tree. Please rebase and
resubmit.

Regards

Marcel
diff mbox series

Patch

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 1005b6e8f..0f40d185d 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -427,6 +427,7 @@  static const struct usb_device_id blacklist_table[] = {
 	/* Additional Realtek 8822CE Bluetooth devices */
 	{ USB_DEVICE(0x04ca, 0x4005), .driver_info = BTUSB_REALTEK },
 	{ USB_DEVICE(0x13d3, 0x3548), .driver_info = BTUSB_REALTEK },
+	{ USB_DEVICE(0x1358, 0xc123), .driver_info = BTUSB_REALTEK },
 
 	/* Silicon Wave based devices */
 	{ USB_DEVICE(0x0c10, 0x0000), .driver_info = BTUSB_SWAVE },