Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp328920pxv; Thu, 22 Jul 2021 00:45:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfMPYKmdYwDd09D7FXWBaUNhZGxeVoKId4aV9Y7Cvu1tujuEzx1dqi356zbbdfT96WKFrF X-Received: by 2002:a02:a69a:: with SMTP id j26mr34333563jam.9.1626939905535; Thu, 22 Jul 2021 00:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626939905; cv=none; d=google.com; s=arc-20160816; b=TWMz2wjLtF4/v4+4g4o7KelphAnCvVeijJLAqhlKf3GElo+tlyRdW6v3okp425vAG4 19p+H2Q2EZuOvf5wLJ+vTqZUPomzT9Vh2myi2JMzTwEfK/VmHa59IBKV7Nmynd6aFle2 rSwNshiOmY6GHU+fEx++FBq4M4toX8+RHs3lhm0Ex4wAr3PFmdk6dtpfAa3psYDRwkCc CEV7iHlgzwtw8AKdDZth80uwpZ/RjzH/SPPKmvk+Wacedp/4z33lbnFucV+OPyzNyswd zmkx66bkfjiMl1yOWegyQJkZte5by88JGPMjpLLJ2OWCusn6dg1VeELpXi+QGncDMxv/ QnYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Ex+u7pPojQ9p9mbp1qfF2tczFCJOho/PW6eHa/b1IFQ=; b=dVNaAuAOh0vDCeW1qexNLKbbAQ0F25Gz5dcNxl+HH9FN6Xlao/YtvFMFCPbraaIxv0 uudzeuViD7tP4qWw70zFswu9gJCG6pewROkFRC9ZGsZ9ZXonyyiLIm1P8xQ2qQR/NnAg PUVvU9QLClajx77VNFbTLBkTqckEa5+CUrGzsU7fIX3N13AfVWyMRuyXmun4ybIyR8Rk J50km5gzz8SeW8Idtadfm4cpX+OQzzHXGNVdY6Vp+wiYxsrMnPkJQ9+8XlBB+7i0kbYM cBZ05jma69dtQentwSylQiLuxcx9BfQqEn7v7gm/izsw7BxzhAb40ODJCZYiDCmy4yym E7gg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w11si19730388jal.126.2021.07.22.00.44.54; Thu, 22 Jul 2021 00:45:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231124AbhGVHDL (ORCPT + 99 others); Thu, 22 Jul 2021 03:03:11 -0400 Received: from mail-pl1-f169.google.com ([209.85.214.169]:42865 "EHLO mail-pl1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230048AbhGVHDK (ORCPT ); Thu, 22 Jul 2021 03:03:10 -0400 Received: by mail-pl1-f169.google.com with SMTP id v14so3508412plg.9; Thu, 22 Jul 2021 00:43:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ex+u7pPojQ9p9mbp1qfF2tczFCJOho/PW6eHa/b1IFQ=; b=jekA4HNgzhLJ/QiZrAZtBnI/CsV40dC2joDh1Oth/fWvVRXMop3qYqrveCqoeraeZ4 Mv67qT2OtxYjnSb5kRX0c+u8FhNtx/dz0QJr8PSmk53g36G1JVXv3j1UpIpQDZzMn426 6wQQqbi/FfVuvFRU+fFdVZhfDqvp7xdLIyQzulzoZW6gcwAMAR8VBAbuU0a8U6daPjjh LHiG+osZ08EwGVNuM/Hw1OoL8Z/l/FZClIRfMXKrqlCnoYWozXumlRUNdMf+XTM/sGYW W0PLCDOG+3OWZZqOFvlNY6qLUBbAvXNHlOgBgZ8Gb8v2aHPECMzjqMtyEYIk1ajIPfmW zM4w== X-Gm-Message-State: AOAM531JKlfNrtPwSEn0yqXcT6MkjrIKTwFDR1DI3sLuRvn4/hoUIk8l QgN1dqZ87dIeouXzOqcF5Ac= X-Received: by 2002:a17:90a:530e:: with SMTP id x14mr39739413pjh.128.1626939824247; Thu, 22 Jul 2021 00:43:44 -0700 (PDT) Received: from localhost (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id x26sm30298886pfj.71.2021.07.22.00.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 00:43:43 -0700 (PDT) From: You-Sheng Yang To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Sean Wang Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, chris.lu@mediatek.com, will-cy.lee@mediatek.com, rex-bc.chen@mediatek.com, "mark-yw . chen" , Andy Chi Subject: [PATCH 2/2] Bluetooth: btusb: Add Mediatek MT7921 support for IMC Network Date: Thu, 22 Jul 2021 15:43:38 +0800 Message-Id: <20210722074338.760456-3-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210722074338.760456-1-vicamo.yang@canonical.com> References: <20210722074338.760456-1-vicamo.yang@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Andy Chi Add Mediatek MT7921 support for IMC Network (VID=13d3). * /sys/kernel/debug/usb/devices T: Bus=01 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=13d3 ProdID=3567 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= 64 Ivl=125us E: Ad=0a(O) Atr=03(Int.) MxPS= 64 Ivl=125us Signed-off-by: Andy Chi --- drivers/bluetooth/btusb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index b71dbb2c9f5e..e2a6f0c99e3f 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -417,6 +417,9 @@ static const struct usb_device_id blacklist_table[] = { { USB_DEVICE(0x04ca, 0x3802), .driver_info = BTUSB_MEDIATEK | BTUSB_WIDEBAND_SPEECH | BTUSB_VALID_LE_STATES }, + { USB_DEVICE(0x13d3, 0x3567), .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.31.1