[PATCH] Bluetooth: btusb: Add support for MediaTek MT7902

OnlineLearningTutorials posted 1 patch 1 month, 2 weeks ago
drivers/bluetooth/btmtk.c |  1 +
drivers/bluetooth/btusb.c | 10 ++++++++++
2 files changed, 11 insertions(+)
[PATCH] Bluetooth: btusb: Add support for MediaTek MT7902
Posted by OnlineLearningTutorials 1 month, 2 weeks ago
This patch adds USB IDs for the AzureWave/MediaTek MT7902 Bluetooth
module.
The device IDs included are:
- 13d3:3579
- 13d3:3580
- 13d3:3594
- 13d3:3596

Signed-off-by: OnlineLearningTutorials <kush.kulshrestha.5@gmail.com>
---
 drivers/bluetooth/btmtk.c |  1 +
 drivers/bluetooth/btusb.c | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/drivers/bluetooth/btmtk.c b/drivers/bluetooth/btmtk.c
index a8c520dc09e1..b793947dd920 100644
--- a/drivers/bluetooth/btmtk.c
+++ b/drivers/bluetooth/btmtk.c
@@ -1323,6 +1323,7 @@ int btmtk_usb_setup(struct hci_dev *hdev)
 	case 0x7668:
 		fwname = FIRMWARE_MT7668;
 		break;
+	case 0x7902:
 	case 0x7922:
 	case 0x7925:
 	case 0x7961:
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index fcec8e589e81..13a2aa13b9f4 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -629,6 +629,16 @@ static const struct usb_device_id quirks_table[] = {
 	/* Additional MediaTek MT7668 Bluetooth devices */
 	{ USB_DEVICE(0x043e, 0x3109), .driver_info = BTUSB_MEDIATEK |
 						     BTUSB_WIDEBAND_SPEECH },
+
+	/* Additional MediaTek MT7902 Bluetooth devices */
+	{ USB_DEVICE(0x13d3, 0x3579), .driver_info = BTUSB_MEDIATEK |
+						     BTUSB_WIDEBAND_SPEECH },
+	{ USB_DEVICE(0x13d3, 0x3580), .driver_info = BTUSB_MEDIATEK |
+						     BTUSB_WIDEBAND_SPEECH },
+	{ USB_DEVICE(0x13d3, 0x3594), .driver_info = BTUSB_MEDIATEK |
+						     BTUSB_WIDEBAND_SPEECH },
+	{ USB_DEVICE(0x13d3, 0x3596), .driver_info = BTUSB_MEDIATEK |
+						     BTUSB_WIDEBAND_SPEECH },
 
 	/* Additional MediaTek MT7920 Bluetooth devices */
 	{ USB_DEVICE(0x0489, 0xe134), .driver_info = BTUSB_MEDIATEK |
-- 
2.51.0
Re: [PATCH] Bluetooth: btusb: Add support for MediaTek MT7902
Posted by AngeloGioacchino Del Regno 1 month, 2 weeks ago
Il 14/02/26 09:27, OnlineLearningTutorials ha scritto:
> This patch adds USB IDs for the AzureWave/MediaTek MT7902 Bluetooth
> module.
> The device IDs included are:
> - 13d3:3579
> - 13d3:3580
> - 13d3:3594
> - 13d3:3596
> 
> Signed-off-by: OnlineLearningTutorials <kush.kulshrestha.5@gmail.com>

Please use your real name when you send patches, and also use the get_maintainer.pl
script.

Actually, just read: https://docs.kernel.org/process/submitting-patches.html

Regards,
Angelo

> ---
>   drivers/bluetooth/btmtk.c |  1 +
>   drivers/bluetooth/btusb.c | 10 ++++++++++
>   2 files changed, 11 insertions(+)
> 
> diff --git a/drivers/bluetooth/btmtk.c b/drivers/bluetooth/btmtk.c
> index a8c520dc09e1..b793947dd920 100644
> --- a/drivers/bluetooth/btmtk.c
> +++ b/drivers/bluetooth/btmtk.c
> @@ -1323,6 +1323,7 @@ int btmtk_usb_setup(struct hci_dev *hdev)
>   	case 0x7668:
>   		fwname = FIRMWARE_MT7668;
>   		break;
> +	case 0x7902:
>   	case 0x7922:
>   	case 0x7925:
>   	case 0x7961:
> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
> index fcec8e589e81..13a2aa13b9f4 100644
> --- a/drivers/bluetooth/btusb.c
> +++ b/drivers/bluetooth/btusb.c
> @@ -629,6 +629,16 @@ static const struct usb_device_id quirks_table[] = {
>   	/* Additional MediaTek MT7668 Bluetooth devices */
>   	{ USB_DEVICE(0x043e, 0x3109), .driver_info = BTUSB_MEDIATEK |
>   						     BTUSB_WIDEBAND_SPEECH },
> +
> +	/* Additional MediaTek MT7902 Bluetooth devices */
> +	{ USB_DEVICE(0x13d3, 0x3579), .driver_info = BTUSB_MEDIATEK |
> +						     BTUSB_WIDEBAND_SPEECH },
> +	{ USB_DEVICE(0x13d3, 0x3580), .driver_info = BTUSB_MEDIATEK |
> +						     BTUSB_WIDEBAND_SPEECH },
> +	{ USB_DEVICE(0x13d3, 0x3594), .driver_info = BTUSB_MEDIATEK |
> +						     BTUSB_WIDEBAND_SPEECH },
> +	{ USB_DEVICE(0x13d3, 0x3596), .driver_info = BTUSB_MEDIATEK |
> +						     BTUSB_WIDEBAND_SPEECH },
>   
>   	/* Additional MediaTek MT7920 Bluetooth devices */
>   	{ USB_DEVICE(0x0489, 0xe134), .driver_info = BTUSB_MEDIATEK |