Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1146753iog; Sat, 25 Jun 2022 02:05:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vPHvIv2cyB+3uSpBgmyv0ZFcWQ/h6CN0IxvcuQ1dmfsLPZxXksixiRzBbXLT9hH31z8HKM X-Received: by 2002:aa7:c80a:0:b0:435:7784:18e with SMTP id a10-20020aa7c80a000000b004357784018emr3964649edt.136.1656147933780; Sat, 25 Jun 2022 02:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656147933; cv=none; d=google.com; s=arc-20160816; b=fyN9u/VknTnxyupbY/KuizrHTe4SlkPvqHNzwvKbYeVuQljmfNaQqsZ94G3ks2B+Sy UbOOqYGOWxijftI88lCcizDxiLiD7mO6tyvS0y+ixmkTl/N2qM4kTrrBXuR/QnxeEa75 ho5EQn82kaX/SAw/iuWlPsEZSx71kMHhyKGZRiF6iT8NP+LaJCVyfiHA64dt1DClIvM4 CgB0hQAOuHdS1ouXz8PSFAzX6OW6OL0pu8cJrTY3E2kPY6NdQGwZ5RWYMKENDFomH0oJ 7/PowkhOdVHWucMuPz8kFInT81WAWtqI76OTXTfLxBlY1xufPU/abUpWWNO364vP7J99 CwSw== 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=PxyMneeFLZ1Him14wA/vaqAtLh6smrx5mXTdl7jbmeM=; b=Vti7pNgGoPeu4+aeI7twZFYjp+8kTxImwqGNinDPy8xdoxepNoxcwJotaVHr/oPTyu OVrFxu1CrimeFuD06gS7gT/EkveHhwNO/SSzmWmWzsgehrt4QmJtUANGBuChKd45gSNX QDBMaFXMsWoByeEs90aRpOyp90mNleGVSVLMTkDsAOIV8cWNfp+5Izyzk4/bPPY1eC3i h78KxjnRdlLjh0Sqd3E46TIbKiq6yQvv+d6F4YCT6RVWzDH+waTsGtpp21+cv4YyMF/i sXcOM4j8UTXAXTBYcz0zUXIKITlxae6UW9/vnIuZXQYgyyrf6trzINVJGlIysTdQnRBi tsPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=eRu2Ta4m; 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 p2-20020a170906784200b006dffb6427bdsi5207109ejm.269.2022.06.25.02.04.49; Sat, 25 Jun 2022 02:05:33 -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=eRu2Ta4m; 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 S232333AbiFYJEJ (ORCPT + 99 others); Sat, 25 Jun 2022 05:04:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231934AbiFYJEI (ORCPT ); Sat, 25 Jun 2022 05:04:08 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 791B231374; Sat, 25 Jun 2022 02:04:05 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id 184so4490306pga.12; Sat, 25 Jun 2022 02:04:05 -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=PxyMneeFLZ1Him14wA/vaqAtLh6smrx5mXTdl7jbmeM=; b=eRu2Ta4mZyZ7borRVGbN1C1efQXR+klT/iliBLQtfzujyuP5iIl8xotq8DV1BMZq0Q B38m7L/JutSdFDHhM0DKpFiBoYebjt13Ikcwl2aWjOeau/wTXVrjjDGe3exTJxqwwesY WLyh9MDasoEDd+jm6MOFsYNoz/vYArosduWEVW7KjtLliagDRoVMRRII3Pen5ZpnolPk pdsW4ACN9f8PrVK5nJU6GR5pM165kVo5KOZgrS8RTQohmVCpPq6KX59bHcWo4352BNtJ HmpRL9TdC3sVXS20e977a9dDwh0EEO+5RLgGwsq5px3wPN80XOJ5JAU8NhDkRoP0NU3b YLWw== 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=PxyMneeFLZ1Him14wA/vaqAtLh6smrx5mXTdl7jbmeM=; b=UNNw/pKhKVoRs3Ieuq+d7ceOxuNNHbeCoBFK7xx9H8BBP+ByFeNS4bNw/az9caAsi6 rKbZg55nG+qUMlPntrspGmNL2ceW7BfL2k0D1u6KRneM8CDMiFWGby8VzWbDmjs2epoI lUt7y9Ea9C10THP5BSdxXYEI8jpOrzt8gBWb8NvqCk1V3/V/dDQB/89a92lYipGk4m1J yO6f1CgdLpFRihLoINQPIE6IQQU2hn8Y9TzJBZfEFeKQ73myfMgpD5eTpKh03ABZKira n9kckFFbR4jJ1LjJeBvFr96nPrN2EyatDJoNdCVQyLnbLf2PnD3BgM90Ung4XkVxPB2W ibdw== X-Gm-Message-State: AJIora8Nn4hhgh/LVrkFCdK+GiV0CDRFw9m9TXDzb8CUpOflRs6w3joh QBiqmZ0NJxBTptp23wr2PC5QzJCCSd47bw== X-Received: by 2002:a63:ff0c:0:b0:3fd:29dd:c478 with SMTP id k12-20020a63ff0c000000b003fd29ddc478mr2849728pgi.291.1656147844935; Sat, 25 Jun 2022 02:04:04 -0700 (PDT) Received: from ZEN.. ([23.225.169.79]) by smtp.googlemail.com with ESMTPSA id t13-20020a17090340cd00b00166496ba268sm3130433pld.285.2022.06.25.02.04.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jun 2022 02:04:04 -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 v4] Bluetooth: btusb: Add a new VID/PID 0489/e0e2 for MT7922 Date: Sat, 25 Jun 2022 17:03:57 +0800 Message-Id: <20220625090358.9373-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 From: He Wang 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: He Wang --- 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