From patchwork Fri Sep 13 09:46:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1985091 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X4qGZ4nrzz1y1y for ; Fri, 13 Sep 2024 19:47:18 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sp2tT-000372-LN; Fri, 13 Sep 2024 09:47:11 +0000 Received: from mail-pf1-f182.google.com ([209.85.210.182]) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sp2tP-000362-M8 for kernel-team@lists.ubuntu.com; Fri, 13 Sep 2024 09:47:07 +0000 Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-7179802b8fcso580856b3a.1 for ; Fri, 13 Sep 2024 02:47:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726220825; x=1726825625; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2PoSVsn89lGLKMPYKR1ZRiZ7sNm6O/CmXJQ2z4Au/nM=; b=HZnJfTnRWOeXfR3rrcRt2U2Clxb80ap/D2HeKhM0Zi+LsCTlVNq/UAqOXFj5RF3UO3 Wg54/z/kZLEWeJX46OLmyLHRIo1L3eYMZsIE1FgCOrfR3A+Puc9cg/6XNDrmbK0iS+tR M7wCPZZqV15+jJe5egm8kTRjTMfUwgdiP/8rmBNZ8RRC8Nj6huonqQ76N2mW0wHH6GSC /ICb0AM8numaE7rUUOFlaXNqysRtTtZLsrML3ndGcg5+vR8j/AhK6ZTyOjrlhIzB/hMt a2VQcb9vNe2czfcgCPG5n2ekv4NQP07WgYgZevfnE4PO77rom5GjhEqQF4P63qzhModc CY1Q== X-Gm-Message-State: AOJu0YybeWmd8QaXJ60MiIg4NcgkOBuzSaPewlEriOn00KDGX3JMIFI1 HZoE31UPBja5sQlTO6CUCiRNFzGRtn2S5Q1xU0pRQbJxDxOy1fSvSvEYWA== X-Google-Smtp-Source: AGHT+IFvSt+SU2BLpXZ+VEUjGAiKGTUz/jWw8IbUAyD8vyCko65lZse8w/pWqi1AYmH+3xCNMu4n3Q== X-Received: by 2002:a05:6a00:3e15:b0:717:88eb:824d with SMTP id d2e1a72fcca58-71936a49609mr3707213b3a.7.1726220825082; Fri, 13 Sep 2024 02:47:05 -0700 (PDT) Received: from localhost.localdomain (125-229-129-140.hinet-ip.hinet.net. [125.229.129.140]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71908fed1d7sm5778451b3a.81.2024.09.13.02.47.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 02:47:03 -0700 (PDT) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH 1/1][Unstable][Oracular] UBUNTU: SAUCE: Bluetooth: btusb: Add USB HW IDs for MT7920/MT7925 Date: Fri, 13 Sep 2024 17:46:14 +0800 Message-ID: <20240913094614.2161259-2-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240913094614.2161259-1-vicamo.yang@canonical.com> References: <20240913094614.2161259-1-vicamo.yang@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.210.182; envelope-from=vicamo@gmail.com; helo=mail-pf1-f182.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Jiande Lu BugLink: https://bugs.launchpad.net/bugs/2078878 Add HW IDs for wireless module. These HW IDs are extracted from Windows driver inf file. Note these HW IDs without official drivers, still in testing phase. Thus, we update module HW ID and test ensure consistent boot success. Signed-off-by: Jiande Lu (cherry picked from https://lore.kernel.org/all/20240604074100.572-1-jiande.lu@mediatek.com/) Signed-off-by: You-Sheng Yang --- drivers/bluetooth/btusb.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 1b668609e567a..59d9bad8d8d76 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -591,6 +591,20 @@ static const struct usb_device_id quirks_table[] = { BTUSB_WIDEBAND_SPEECH | BTUSB_VALID_LE_STATES }, + /* Additional MediaTek MT7920 Bluetooth devices */ + { USB_DEVICE(0x0489, 0xe134), .driver_info = BTUSB_MEDIATEK | + BTUSB_WIDEBAND_SPEECH | + BTUSB_VALID_LE_STATES }, + { USB_DEVICE(0x13d3, 0x3620), .driver_info = BTUSB_MEDIATEK | + BTUSB_WIDEBAND_SPEECH | + BTUSB_VALID_LE_STATES }, + { USB_DEVICE(0x13d3, 0x3621), .driver_info = BTUSB_MEDIATEK | + BTUSB_WIDEBAND_SPEECH | + BTUSB_VALID_LE_STATES }, + { USB_DEVICE(0x13d3, 0x3622), .driver_info = BTUSB_MEDIATEK | + BTUSB_WIDEBAND_SPEECH | + BTUSB_VALID_LE_STATES }, + /* Additional MediaTek MT7921 Bluetooth devices */ { USB_DEVICE(0x0489, 0xe0c8), .driver_info = BTUSB_MEDIATEK | BTUSB_WIDEBAND_SPEECH | @@ -691,6 +705,9 @@ static const struct usb_device_id quirks_table[] = { { USB_DEVICE(0x0489, 0xe113), .driver_info = BTUSB_MEDIATEK | BTUSB_WIDEBAND_SPEECH | BTUSB_VALID_LE_STATES }, + { USB_DEVICE(0x0489, 0xe139), .driver_info = BTUSB_MEDIATEK | + BTUSB_WIDEBAND_SPEECH | + BTUSB_VALID_LE_STATES }, { USB_DEVICE(0x13d3, 0x3602), .driver_info = BTUSB_MEDIATEK | BTUSB_WIDEBAND_SPEECH | BTUSB_VALID_LE_STATES },