diff mbox series

[1/1,Unstable,Oracular] UBUNTU: SAUCE: Bluetooth: btusb: Add USB HW IDs for MT7920/MT7925

Message ID 20240913094614.2161259-2-vicamo.yang@canonical.com
State New
Headers show
Series Add Bluetooth device IDs for new Mediatek MT7920/MT7925 | expand

Commit Message

You-Sheng Yang Sept. 13, 2024, 9:46 a.m. UTC
From: Jiande Lu <jiande.lu@mediatek.com>

BugLink: https://bugs.launchpad.net/bugs/2078878

Add HW IDs for wireless module. These HW IDs are extracted from
Windows driver inf file. Note these HW IDs without official drivers,
still in testing phase. Thus, we update module HW ID and test
ensure consistent boot success.

Signed-off-by: Jiande Lu <jiande.lu@mediatek.com>
(cherry picked from https://lore.kernel.org/all/20240604074100.572-1-jiande.lu@mediatek.com/)
Signed-off-by: You-Sheng Yang <vicamo.yang@canonical.com>
---
 drivers/bluetooth/btusb.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

Comments

Kuan-Ying Lee Sept. 18, 2024, 5:20 a.m. UTC | #1
On Fri, Sep 13, 2024 at 05:46:14PM +0800, You-Sheng Yang wrote:
> From: Jiande Lu <jiande.lu@mediatek.com>
> 
> BugLink: https://bugs.launchpad.net/bugs/2078878
> 
> Add HW IDs for wireless module. These HW IDs are extracted from
> Windows driver inf file. Note these HW IDs without official drivers,
> still in testing phase. Thus, we update module HW ID and test
> ensure consistent boot success.
> 
> Signed-off-by: Jiande Lu <jiande.lu@mediatek.com>
> (cherry picked from https://lore.kernel.org/all/20240604074100.572-1-jiande.lu@mediatek.com/)

There is a new version of the patch.
Please use the latest patch.
https://lore.kernel.org/all/20240916032228.6601-1-jiande.lu@mediatek.com/

Thanks.

> Signed-off-by: You-Sheng Yang <vicamo.yang@canonical.com>
> ---
>  drivers/bluetooth/btusb.c | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
> index 1b668609e567a..59d9bad8d8d76 100644
> --- a/drivers/bluetooth/btusb.c
> +++ b/drivers/bluetooth/btusb.c
> @@ -591,6 +591,20 @@ static const struct usb_device_id quirks_table[] = {
>  						     BTUSB_WIDEBAND_SPEECH |
>  						     BTUSB_VALID_LE_STATES },
>  
> +	/* Additional MediaTek MT7920 Bluetooth devices */
> +	{ USB_DEVICE(0x0489, 0xe134), .driver_info = BTUSB_MEDIATEK |
> +						     BTUSB_WIDEBAND_SPEECH |
> +						     BTUSB_VALID_LE_STATES },
> +	{ USB_DEVICE(0x13d3, 0x3620), .driver_info = BTUSB_MEDIATEK |
> +						     BTUSB_WIDEBAND_SPEECH |
> +						     BTUSB_VALID_LE_STATES },
> +	{ USB_DEVICE(0x13d3, 0x3621), .driver_info = BTUSB_MEDIATEK |
> +						     BTUSB_WIDEBAND_SPEECH |
> +						     BTUSB_VALID_LE_STATES },
> +	{ USB_DEVICE(0x13d3, 0x3622), .driver_info = BTUSB_MEDIATEK |
> +						     BTUSB_WIDEBAND_SPEECH |
> +						     BTUSB_VALID_LE_STATES },
> +
>  	/* Additional MediaTek MT7921 Bluetooth devices */
>  	{ USB_DEVICE(0x0489, 0xe0c8), .driver_info = BTUSB_MEDIATEK |
>  						     BTUSB_WIDEBAND_SPEECH |
> @@ -691,6 +705,9 @@ static const struct usb_device_id quirks_table[] = {
>  	{ USB_DEVICE(0x0489, 0xe113), .driver_info = BTUSB_MEDIATEK |
>  						     BTUSB_WIDEBAND_SPEECH |
>  						     BTUSB_VALID_LE_STATES },
> +	{ USB_DEVICE(0x0489, 0xe139), .driver_info = BTUSB_MEDIATEK |
> +						     BTUSB_WIDEBAND_SPEECH |
> +						     BTUSB_VALID_LE_STATES },
>  	{ USB_DEVICE(0x13d3, 0x3602), .driver_info = BTUSB_MEDIATEK |
>  						     BTUSB_WIDEBAND_SPEECH |
>  						     BTUSB_VALID_LE_STATES },
diff mbox series

Patch

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 1b668609e567a..59d9bad8d8d76 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -591,6 +591,20 @@  static const struct usb_device_id quirks_table[] = {
 						     BTUSB_WIDEBAND_SPEECH |
 						     BTUSB_VALID_LE_STATES },
 
+	/* Additional MediaTek MT7920 Bluetooth devices */
+	{ USB_DEVICE(0x0489, 0xe134), .driver_info = BTUSB_MEDIATEK |
+						     BTUSB_WIDEBAND_SPEECH |
+						     BTUSB_VALID_LE_STATES },
+	{ USB_DEVICE(0x13d3, 0x3620), .driver_info = BTUSB_MEDIATEK |
+						     BTUSB_WIDEBAND_SPEECH |
+						     BTUSB_VALID_LE_STATES },
+	{ USB_DEVICE(0x13d3, 0x3621), .driver_info = BTUSB_MEDIATEK |
+						     BTUSB_WIDEBAND_SPEECH |
+						     BTUSB_VALID_LE_STATES },
+	{ USB_DEVICE(0x13d3, 0x3622), .driver_info = BTUSB_MEDIATEK |
+						     BTUSB_WIDEBAND_SPEECH |
+						     BTUSB_VALID_LE_STATES },
+
 	/* Additional MediaTek MT7921 Bluetooth devices */
 	{ USB_DEVICE(0x0489, 0xe0c8), .driver_info = BTUSB_MEDIATEK |
 						     BTUSB_WIDEBAND_SPEECH |
@@ -691,6 +705,9 @@  static const struct usb_device_id quirks_table[] = {
 	{ USB_DEVICE(0x0489, 0xe113), .driver_info = BTUSB_MEDIATEK |
 						     BTUSB_WIDEBAND_SPEECH |
 						     BTUSB_VALID_LE_STATES },
+	{ USB_DEVICE(0x0489, 0xe139), .driver_info = BTUSB_MEDIATEK |
+						     BTUSB_WIDEBAND_SPEECH |
+						     BTUSB_VALID_LE_STATES },
 	{ USB_DEVICE(0x13d3, 0x3602), .driver_info = BTUSB_MEDIATEK |
 						     BTUSB_WIDEBAND_SPEECH |
 						     BTUSB_VALID_LE_STATES },