From patchwork Tue May 14 10:52:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "SoloSaravanan@proton.me" X-Patchwork-Id: 796773 Received: from mail-4027.protonmail.ch (mail-4027.protonmail.ch [185.70.40.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C641E12C474 for ; Tue, 14 May 2024 10:52:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.27 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715683956; cv=none; b=mr38NxQ+Rp94g8LX4/h51Ihud7cUIEKc9FEt1exkqYhOCAe0SnaKixR4Uh/OhZFI1kfX5TBkr6qDdDMOYF0mQWymbXXdz/sgT88bUSTCuwppYLQybl1CgE5doiOqWb/Cb6eHhBt3+JOPsEyJ2fwfKf30XVWatrjuXrWQD4KJUI0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715683956; c=relaxed/simple; bh=ZkYogbEGN8eYzhwpggq3OqaVz7J2MKyL0AB4jX+nygU=; h=Date:To:From:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=oAchfza0/4j+DLw3Yi4gh42vKBApooAegZTbx7kKKeuswnelV6llQWnVu+A4dcgVuCrulXHKCKJ8z9sS2Rsuye95KvaP80cct/B9AzN8hyv7iS2FkjjNHifFP9e0I6oSvI+S25gqr6SVUx850nUOi8FFWGFWRNBm2sWYKG9tuyA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me; spf=pass smtp.mailfrom=proton.me; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b=IvzrDRon; arc=none smtp.client-ip=185.70.40.27 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="IvzrDRon" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1715683951; x=1715943151; bh=ZkYogbEGN8eYzhwpggq3OqaVz7J2MKyL0AB4jX+nygU=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=IvzrDRonBWWVxOdCMVdBPLbbsIH2c/1J2uNfzWSQLSg3d3fGZJTv+LrPPiLNih2hD rKBwhKPF2rzR1to5CGAOcaOncpkx6R8ZKSDppxJlaIfBMxPWwfVcIBS1hHs6Sk/WmQ RD9ulqeK38XA09Mrsi8w9LLwuXPJKZa1QNzGwBzMnFteP+jzOwkEw7B4IdM0b6TyoR NtpUqq0kms6j2pupqgEVjciuF4ExwPTE6HHb99m52dK//GwXXBUJw2uzXZwhInmv4T XtjHZ8OPrY4DWLWN3+CNfIYuwg1as0zNhxilm44GqQ8B0r9Ii1uTVXJnbww7DNUuEC vujMKXY4pj9zw== Date: Tue, 14 May 2024 10:52:29 +0000 To: "marcel@holtmann.org" , "luiz.dentz@gmail.com" From: "SoloSaravanan@proton.me" Cc: "linux-bluetooth@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH] Bluetooth: btusb: Add device 13d3:3606 as MT7921 device Message-ID: <5aweNli8mhqprLPB0O418QX4MYtylYw3R6Zaof-xBxNqcuBY9WfT23vrdlrPGSDs2lksHC0iwXGzyVQq91VRQ38hJOecQZX2c_eEqk8Snz4=@proton.me> Feedback-ID: 84438951:user:proton X-Pm-Message-ID: 43b918bdc097dd85a3d99f87b251b9118e56e8d3 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Empty Message >From a18eb9747966822b708b2f82e1ca03fab796080b Mon Sep 17 00:00:00 2001 From: SoloSaravanan Date: Tue, 14 May 2024 16:18:05 +0530 Subject: [PATCH] Bluetooth: btusb: Add device 13d3:3606 as MT7921 device Add VendorID 13d3 & ProdID 3606 for MediaTek MT7921 USB Bluetooth chip. The information in /sys/kernel/debug/usb/devices about the Bluetooth device is listed as the below. T: Bus=03 Lev=01 Prnt=01 Port=09 Cnt=03 Dev#= 4 Spd=480 MxCh= 0 D: Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=13d3 ProdID=3606 Rev= 1.00 S: Manufacturer=MediaTek Inc. S: Product=Wireless_Device S: SerialNumber=000000000 C:* #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=100mA A: FirstIf#= 0 IfCount= 3 Cls=e0(wlcon) Sub=01 Prot=01 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=125us E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms E: Ad=03(O) 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=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms E: Ad=03(O) 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=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms E: Ad=03(O) 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=83(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms E: Ad=03(O) 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=83(I) Atr=01(Isoc) MxPS= 33 Ivl=1ms E: Ad=03(O) 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=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms I: If#= 1 Alt= 6 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb E: Ad=83(I) Atr=01(Isoc) MxPS= 63 Ivl=1ms E: Ad=03(O) Atr=01(Isoc) MxPS= 63 Ivl=1ms I:* If#= 2 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none) E: Ad=8a(I) Atr=03(Int.) MxPS= 64 Ivl=125us E: Ad=0a(O) Atr=03(Int.) MxPS= 64 Ivl=125us I: If#= 2 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none) E: Ad=8a(I) Atr=03(Int.) MxPS= 512 Ivl=125us E: Ad=0a(O) Atr=03(Int.) MxPS= 512 Ivl=125us Signed-off-by: SoloSaravanan --- drivers/bluetooth/btusb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index e3946f7b736e..aadab04c7456 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -618,6 +618,9 @@ static const struct usb_device_id quirks_table[] = { { USB_DEVICE(0x0e8d, 0x0608), .driver_info = BTUSB_MEDIATEK | BTUSB_WIDEBAND_SPEECH | BTUSB_VALID_LE_STATES }, + { USB_DEVICE(0x13d3, 0x3606), .driver_info = BTUSB_MEDIATEK | + BTUSB_WIDEBAND_SPEECH | + BTUSB_VALID_LE_STATES }, /* MediaTek MT7922A Bluetooth devices */ { USB_DEVICE(0x0489, 0xe0d8), .driver_info = BTUSB_MEDIATEK | -- 2.45.0