Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp328532pxv; Thu, 22 Jul 2021 00:44:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiZv6pCFigjDpSYjRxso0i4BfXyu55qYSoOwkDEE65OmqoBlOowIEolXJceld9OccdPlnb X-Received: by 2002:a5d:9ccb:: with SMTP id w11mr24639727iow.174.1626939870685; Thu, 22 Jul 2021 00:44:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626939870; cv=none; d=google.com; s=arc-20160816; b=tnjn78C9YtmCcg3xexZOZ7RwPR8rd74GWQ0fs2C4wpSeKdbmHntPM6VUcg3QEGd+Wj 8m/M8bLd7NpPQIc3Rt5RvYWGgd+KvLDQFHWsKiM/GOfUVDesr28brmyblvGoE+IuL4kn mgR30idcmWIn7HT05xVEqQK/wromDYWUsk9SeM/VK4w465CNjtSyaCovnZ8ZuQltK8NO bY2Ra6oA0R9x6S7BiEiQoIIwyCjdMXjBF/vNqljTDZMzl/iWUWyh+vU4R8p+LL3DTzKp fuajzbMVst5wQtzfknJhLn6OfcEJoPUGhjew0JYUYLi+GP29MUaJhjLFcgR+yQN7ZUQ0 xNDQ== 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=iPTQgjgJ8MbYg+PAVEXP+4BfBC33tJlBE7W2FwW3Lm0=; b=KwN4gPjM5eBWOG3NpBe082G4fGCQqK3ids8cD73v5Wr1oDRzsIg8lRCd7zPjANF0Tt +82KSyJ7jwZhsWu+c/bT5dxgsAxBTY59gRnS1oakmGZBIKsqKbtTZ/1puZL2KL1Ic86I arVNHR76NlgpTO5Vb1G/35a4NuraWMqUdwqa3+BNw1lH7tMtoSZIN/bXhs44AJ7GUplg BhtYnk6ZPKWDUxq4LK1AlY3MfLhx0AD6Elv5KmVlzMQpfnvcnFAU5kYZ/VLt8EU+y5g4 fbF1O3upoOkCNU3pQLDP7xNDu6ae6VSqQe0mAL76t00nAZ7GVgQRtYXPEv1FSQkpUxjO z4Ug== 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 h2si30175353ils.86.2021.07.22.00.44.19; Thu, 22 Jul 2021 00:44:30 -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 S230414AbhGVHDI (ORCPT + 99 others); Thu, 22 Jul 2021 03:03:08 -0400 Received: from mail-pl1-f173.google.com ([209.85.214.173]:39921 "EHLO mail-pl1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230048AbhGVHDH (ORCPT ); Thu, 22 Jul 2021 03:03:07 -0400 Received: by mail-pl1-f173.google.com with SMTP id h1so3491459plf.6; Thu, 22 Jul 2021 00:43:42 -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=iPTQgjgJ8MbYg+PAVEXP+4BfBC33tJlBE7W2FwW3Lm0=; b=IIzIgwIb1Oa4mflOYOxQHDEBU8ol3n+8W6MfwlZ38RA6oa9TM5xNFsS6cbTogmE/6b 2MHoz5qZpbFty+o+GKenYEXUUxz3QTmwQjQilL0/9GUnHtS8/5UxtK5TwLTgzIV3q9Ih dUFmuKUYsCJLAwgA6ktZZ4fpImBaPpyuwLyUiIajGsA0qt8/MJAI249avcEcS0H+IQ47 szMS3GbYP3NLXtAc3h+hKq+6mhfk0LxQevZgAcXH9a7Wr9J1IA5EImA2AJj23QTQ+cC3 2BQaReHfA36L0s/m84q/afwPj7sZxFaOnpPiNhIMn2w3OjUjAx5Wsa+vXItcZx2cRU5/ qiiA== X-Gm-Message-State: AOAM5316JkmEMskOVGxDZV/AELDOZM2uj37vunLPheAEdtOD19TPM01D VQKkkbe76z4YhHYrUkIoS48= X-Received: by 2002:a17:903:32c5:b029:12b:9107:8684 with SMTP id i5-20020a17090332c5b029012b91078684mr12823754plr.73.1626939822172; Thu, 22 Jul 2021 00:43:42 -0700 (PDT) Received: from localhost (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id t26sm32057764pgu.35.2021.07.22.00.43.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 00:43:41 -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 1/2] Bluetooth: btusb: Add Mediatek MT7921 support for Foxconn Date: Thu, 22 Jul 2021 15:43:37 +0800 Message-Id: <20210722074338.760456-2-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 Add Mediatek MT7921 support for Foxconn (VID=0489). * /sys/kernel/debug/usb/devices T: Bus=01 Lev=01 Prnt=01 Port=13 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=0489 ProdID=e0c8 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: You-Sheng Yang --- drivers/bluetooth/btusb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index a9855a2dd561..b71dbb2c9f5e 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -411,6 +411,9 @@ static const struct usb_device_id blacklist_table[] = { { USB_DEVICE(0x13d3, 0x3560), .driver_info = BTUSB_MEDIATEK}, /* Additional MediaTek MT7921 Bluetooth devices */ + { USB_DEVICE(0x0489, 0xe0c8), .driver_info = BTUSB_MEDIATEK | + BTUSB_WIDEBAND_SPEECH | + BTUSB_VALID_LE_STATES }, { USB_DEVICE(0x04ca, 0x3802), .driver_info = BTUSB_MEDIATEK | BTUSB_WIDEBAND_SPEECH | BTUSB_VALID_LE_STATES }, -- 2.31.1