Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1120094iog; Sat, 25 Jun 2022 01:12:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1slvkxk/Dhf15tNNWkybLOXG4zNBaolEHZR+qd8mbOXa53f7Ot1jtkfIEY9Pc5rv0qzcy59 X-Received: by 2002:a17:907:1c1a:b0:726:2ce1:955e with SMTP id nc26-20020a1709071c1a00b007262ce1955emr2697068ejc.566.1656144769005; Sat, 25 Jun 2022 01:12:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656144768; cv=none; d=google.com; s=arc-20160816; b=I1R6QHOx3D34jnufWdX1w8Mch/O7MHwaVBrglNfkgwZECwyS+uWw6A1CrbKRnRtHDY yU6zxqBO6vTkxR0ueV9atCKq1ZWvCKDS9xhGobJ/HJRlbqyHVIM157qJ0V8OwhyfgANM B4DfTFKiXrLX17iu1d3HvEtcSbLbSJuHL9StpcbpZDKFl4gtjtVKBJFVqSJSqnsb1iwF EJMqIaQzvoV+OVBEhEkYAIH3jvBzpGhGJs8FWG4so3ZNaTsscGEd2Y2cRmjvEmozae/W Di3oov+BaLC+n0qQjqRE2tHfZTF1o711lN6Bi5s65MoXz+a8g39PH/6Plg6Xi9VlkgTc aGLA== 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=lDWMJLL7b7hzJh8tds1bD8xBhXjv7hAzXFZafEyqTtY=; b=brFjHh4n4MIJEKpOXO56b/6Vsm/VA4yf1g4xagrqS19EEzg1vaHX379UmJOlbS1rfR gOeSVxAi0w2sHqJucf/fV55m1iL+RJbUxqQ+ivl1tir5KC3etIiEM/tVYnd/aG51ksYW NxBKDLe6p+rrd6/Lp0/jSUpbs9TtiBdPA7241ecb2CvYuNEGwuh27349NMZ26jYDljDD GzGru/ALsc+/HQOIoDMWgy6uHKATpi/XPp+fai9LoJAHdfvzuKFrrIRY0YDvMhtcAygn D0zVQ35Jgtc9W473R4KTL/O1mTfgYwq8UbmI7NTmoCbGqp/jXVMCrz2IvXFCb5xFkWha 2Zww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=Ycp4G604; 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 cw5-20020a170906478500b00715777cb7e3si5844108ejc.857.2022.06.25.01.12.01; Sat, 25 Jun 2022 01:12:48 -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=Ycp4G604; 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 S231785AbiFYIAO (ORCPT + 99 others); Sat, 25 Jun 2022 04:00:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231340AbiFYIAN (ORCPT ); Sat, 25 Jun 2022 04:00:13 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A54640A11; Sat, 25 Jun 2022 01:00:13 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id w24so4720554pjg.5; Sat, 25 Jun 2022 01:00:13 -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=lDWMJLL7b7hzJh8tds1bD8xBhXjv7hAzXFZafEyqTtY=; b=Ycp4G604pbCfOxrLUxAxT1vjBm3cpZnW0nl+pR1bzU0NHOscfe7tpVRhSsu5jjHThZ AIdE77P32o3JYo0ENsz9faJTT7DRXgn9mk+Tag+cqpcUWXVz0e/p4q6YdXee7J/pDrTd 8XIATfWRHdbNqCFGplFk29hnymizhTE2M9yKLW0mK0ikoYe2/4OzL8sXyttvTAvmYfVb wWXoT0op0rl6zptNAOPhgznaPCUULsPj2v9os7hn34rAQZjELZ9WOY6+F2hRrKtQaToc bNRsgOQhyuJ5F30Egb583Ov8QC+47ZIA3VkVXoq2iDsIR+ndK2jLH4s2WOMq2J56vnKM CFIQ== 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=lDWMJLL7b7hzJh8tds1bD8xBhXjv7hAzXFZafEyqTtY=; b=nLi74DXX8b6WtbKYNKixoqqQqRWpXh7x+X5JBoVBSWFOjCma/QZjWPCY+YDdnb1sip gOA2Rmm4iPc2S1KKoxZFWr7V3sblP0ulPy4u9d8ry9voXvmcz+u3zB2ale4nSGTGnQmg oxVm/oIeLBm9PidjfvT1UKQ86NYzNQbtzo9ewPX8eMD2nNRype7nHcfo9lY8JiuB8tRM DV9OBDvr8QukZbn6n0vXmUuiN8rsfose32mNRJW3I2+Vxkls1LJOgZdFNM/hu4QnhnBD EsYF7KoWGhtcx2D5GI619byFkO80nxf/nOcjRHMDuzfyjKbjjRaji8FExVSzjVi08kKD 40Ww== X-Gm-Message-State: AJIora8Z61vN8x2fBzV3lyt0KFz8WunA56SnSpqbXRX5HrU8R076KN9J IVtJrwuaCgmX91iLM5S1sWV+yvPprmlFhboC X-Received: by 2002:a17:90a:c981:b0:1e6:75f0:d4f1 with SMTP id w1-20020a17090ac98100b001e675f0d4f1mr3340993pjt.62.1656144012593; Sat, 25 Jun 2022 01:00:12 -0700 (PDT) Received: from ZEN.. ([23.225.169.79]) by smtp.googlemail.com with ESMTPSA id n8-20020a17090a394800b001e85f38bc79sm5223100pjf.41.2022.06.25.01.00.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jun 2022 01:00:12 -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 v3] Bluetooth: btusb: Add a new VID/PID 0489/e0e2 for MT7922 Date: Sat, 25 Jun 2022 16:00:03 +0800 Message-Id: <20220625080003.7104-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: 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