kernel: bump 5.15 to 5.15.100
[openwrt/openwrt.git] / target / linux / generic / backport-5.15 / 823-v5.18-Bluetooth-btusb-Add-a-new-PID-VID-13d3-3567-for-MT79.patch
1 From e57186fc02cedff191c469a26cce615371e41740 Mon Sep 17 00:00:00 2001
2 From: Yake Yang <yake.yang@mediatek.com>
3 Date: Wed, 23 Feb 2022 07:55:59 +0800
4 Subject: [PATCH 3/5] Bluetooth: btusb: Add a new PID/VID 13d3/3567 for MT7921
5
6 Add VID 13D3 & PID 3567 for MediaTek MT7921 USB Bluetooth chip.
7
8 The information in /sys/kernel/debug/usb/devices about the Bluetooth
9 device is listed as the below.
10
11 T: Bus=05 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
12 D: Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
13 P: Vendor=13d3 ProdID=3567 Rev= 1.00
14 S: Manufacturer=MediaTek Inc.
15 S: Product=Wireless_Device
16 S: SerialNumber=000000000
17 C:* #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=100mA
18 A: FirstIf#= 0 IfCount= 3 Cls=e0(wlcon) Sub=01 Prot=01
19 I:* If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
20 E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=125us
21 E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
22 E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
23 I:* If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
24 E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
25 E: Ad=03(O) Atr=01(Isoc) MxPS= 0 Ivl=1ms
26 I: If#= 1 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
27 E: Ad=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms
28 E: Ad=03(O) Atr=01(Isoc) MxPS= 9 Ivl=1ms
29 I: If#= 1 Alt= 2 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
30 E: Ad=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms
31 E: Ad=03(O) Atr=01(Isoc) MxPS= 17 Ivl=1ms
32 I: If#= 1 Alt= 3 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
33 E: Ad=83(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms
34 E: Ad=03(O) Atr=01(Isoc) MxPS= 25 Ivl=1ms
35 I: If#= 1 Alt= 4 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
36 E: Ad=83(I) Atr=01(Isoc) MxPS= 33 Ivl=1ms
37 E: Ad=03(O) Atr=01(Isoc) MxPS= 33 Ivl=1ms
38 I: If#= 1 Alt= 5 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
39 E: Ad=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms
40 E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms
41 I: If#= 1 Alt= 6 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
42 E: Ad=83(I) Atr=01(Isoc) MxPS= 63 Ivl=1ms
43 E: Ad=03(O) Atr=01(Isoc) MxPS= 63 Ivl=1ms
44 I:* If#= 2 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none)
45 E: Ad=8a(I) Atr=03(Int.) MxPS= 64 Ivl=125us
46 E: Ad=0a(O) Atr=03(Int.) MxPS= 64 Ivl=125us
47 I: If#= 2 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none)
48 E: Ad=8a(I) Atr=03(Int.) MxPS= 64 Ivl=125us
49 E: Ad=0a(O) Atr=03(Int.) MxPS= 64 Ivl=125us
50
51 Co-developed-by: Sean Wang <sean.wang@mediatek.com>
52 Signed-off-by: Sean Wang <sean.wang@mediatek.com>
53 Signed-off-by: Yake Yang <yake.yang@mediatek.com>
54 Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
55 ---
56 drivers/bluetooth/btusb.c | 3 +++
57 1 file changed, 3 insertions(+)
58
59 --- a/drivers/bluetooth/btusb.c
60 +++ b/drivers/bluetooth/btusb.c
61 @@ -464,6 +464,9 @@ static const struct usb_device_id blackl
62 { USB_DEVICE(0x13d3, 0x3564), .driver_info = BTUSB_MEDIATEK |
63 BTUSB_WIDEBAND_SPEECH |
64 BTUSB_VALID_LE_STATES },
65 + { USB_DEVICE(0x13d3, 0x3567), .driver_info = BTUSB_MEDIATEK |
66 + BTUSB_WIDEBAND_SPEECH |
67 + BTUSB_VALID_LE_STATES },
68 { USB_DEVICE(0x0489, 0xe0cd), .driver_info = BTUSB_MEDIATEK |
69 BTUSB_WIDEBAND_SPEECH |
70 BTUSB_VALID_LE_STATES },