Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp95513iog; Thu, 23 Jun 2022 23:26:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tZ/cHmI1cWcHz+GX4hwlH4F3qsqmYW6d8310rGz069SETeZRCM+FVCvmxoh9vcUq22Hq7p X-Received: by 2002:a05:6402:3227:b0:435:8e00:62b4 with SMTP id g39-20020a056402322700b004358e0062b4mr15307885eda.325.1656052001053; Thu, 23 Jun 2022 23:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656052001; cv=none; d=google.com; s=arc-20160816; b=WxIBU/9JRFI7ZAMTqHJFt6KE1tXhCuLGhkk9F52UzRfdCx4gfC08lgeKDYGzuAsbK8 HJL2CogE00pwygMqD2pLKkm9VKeg/D3hzIiuwUqpFJrwP0CVLO8jOi/BYaj701Kg9Mbw 2rk48lp21IsqkATw08icG8o5f6Vkb087SsniQVQXBW6wgv41Z5z4OSx68ZFLUuJIfnHt uprlBxTKKf3BgpBYz6sADYSFPgNnyg0F7k/XpFSvCbXMGyLIrxkrG5VHfCvnjkH2H8k7 s07lf8DD/JXmO709PE+j50rV3V9y/ddjodE5bQg6f1/t89DUO0pu2x4/w2V7DOXO5rcz ZN2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=lAEP2sHrXbKxadsvb5WCiqvBUjLw5ULpC36iLZbKyWs=; b=SBsnyV8yqc2Gx+PEkT3xKxgxAhgvJhSXDp+eQlOVfnASmDwRWeOXzat8ApMN+RvGxk o9KrUHdDUQ29QW/ciTArGOFXeeA9YKree6cZ2mPsxcBv0zEhKMM/1deKkRsVPxSBGt6t cjnFBrpjHyl5vXC+LIkYycmyCPMpQZA+R4dceXINCLRIb6rCREad4S3Au9IyJZW3scvf jbzEDXdd8nNVfpxblqYdaPL270OUA7vtfBn6txwcnmV7jMcVgxh9TGbl0A/GzlapL3WS UMXH3FzvglSFunIx2JqsYSEmW4XVDuF0ZDkBUzNvA1YNCR5GJxMHSrUJEZIcv/AXUaXz RuNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=iaJaknUM; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hu9-20020a170907a08900b0070791e500aesi1733553ejc.379.2022.06.23.23.25.37; Thu, 23 Jun 2022 23:26:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=iaJaknUM; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230283AbiFXGRN (ORCPT + 99 others); Fri, 24 Jun 2022 02:17:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230301AbiFXGRN (ORCPT ); Fri, 24 Jun 2022 02:17:13 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 697BD4DF73; Thu, 23 Jun 2022 23:17:12 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id 68so1489103pgb.10; Thu, 23 Jun 2022 23:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lAEP2sHrXbKxadsvb5WCiqvBUjLw5ULpC36iLZbKyWs=; b=iaJaknUM0hJCXpPJYvH3NG5Ui5wciJRJ0GDlvnHmqVV0zFVWFSYK+nTCwsxp/x3/a/ xbRO0BuEOb6DxmVLuF+zzeRQaZ4+fAitrM5h28BGodVNQcYQ7HXYkG4VFtHbUAVVLcmx cM85hw6e5Zz1Tz5nwLddv6dpXy7eFhnEAB9ni4foYguA7fXYCf0crI4JSpH5pDD3wlxa 0tuWstIoAiAQGvItaaj1EGlx+bZUPWU7BoQoydJWEGCj+kQMvGyKICrm4sv3Pn8Qtv8f 4cA4/rUR0DBxwo573gMl7Xj9xcWDRCOrPM0d+6f6h++I00dT2ST6MKm+ZGZx65l+rES7 jULw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lAEP2sHrXbKxadsvb5WCiqvBUjLw5ULpC36iLZbKyWs=; b=y2hK4ERB32UvwbF1fSHz5jV7C0m0/Hg5wwviblxfvjdTapEMQktljFmORbQRvAVhu/ PqfHgFm+TScld/8ZUI5rfYQlif5VzflkmtpI/hNHNB4xDdpbMVNH8qwJ4fsIpBn8+LYR +aiwIUQY54GP66HKKzIXtNZhorUh+OjuS79BFq4OOXoXRTr8hHVsTuIXg9Us8ARL5DQj FxKVp/zCwo5FtG2fgoApYvu24eKgrT0BTe7fwEItNTr2ImefIInhPW8jvF1V0XzFi4+u gggxe+9lIuuGl/sdfoofUPrE8hm3RkqRNOuhh/r5uEbs9Vr8gqe5tkdEttVnICCQpEwX PAfg== X-Gm-Message-State: AJIora/HyKUsO7eBkPlRHRm/R218E9ZWbYErGlSDnAdRK7wj71WxTKfH yMXgC8om8szSUYAaSwaFrcnzX8YDw2ExnT8C X-Received: by 2002:a63:ea09:0:b0:3fd:3c6a:47c2 with SMTP id c9-20020a63ea09000000b003fd3c6a47c2mr10439756pgi.242.1656051431887; Thu, 23 Jun 2022 23:17:11 -0700 (PDT) Received: from ZEN.. ([128.1.48.244]) by smtp.googlemail.com with ESMTPSA id n11-20020a170903404b00b0016a12571537sm850241pla.299.2022.06.23.23.17.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jun 2022 23:17:11 -0700 (PDT) From: xhe Cc: xw897002528@gmail.com, Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] Bluetooth: btusb: Add a new VID/PID 0489/e0e2 for MT7922 Date: Fri, 24 Jun 2022 14:16:38 +0800 Message-Id: <20220624061639.36230-1-xw897002528@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Add VID/PID 0489:e0e2 for MediaTek MT7922 Bluetooth chip. Found and tested with Asus UM5302TA. From /sys/kernel/debug/usb/devices: T: Bus=03 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 D: Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=0489 ProdID=e0e2 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: xhe --- drivers/bluetooth/btusb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index fb1a67189412..23ff919d7768 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -480,6 +480,9 @@ static const struct usb_device_id blacklist_table[] = { { USB_DEVICE(0x13d3, 0x3568), .driver_info = BTUSB_MEDIATEK | BTUSB_WIDEBAND_SPEECH | BTUSB_VALID_LE_STATES }, + { USB_DEVICE(0x0489, 0xe0e2), .driver_info = BTUSB_MEDIATEK | + BTUSB_WIDEBAND_SPEECH | + BTUSB_VALID_LE_STATES }, /* Additional Realtek 8723AE Bluetooth devices */ { USB_DEVICE(0x0930, 0x021d), .driver_info = BTUSB_REALTEK }, -- 2.33.0