From patchwork Wed Jan 4 06:33:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuanhong Guo X-Patchwork-Id: 13088218 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B5342C4332F for ; Wed, 4 Jan 2023 06:37:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=LvBLnz+Qw5XBaI9ukvlP9MPgAG0WkbjoASDa/4MuLQ0=; b=pw3ChTTy96eUgG 7rpy9jb3/+MGuMSJVs61aNGQ5K+p6HIPi3bLih/3hNKv+YosQhsZTgHV6T9ep1DB9d+CGA7PpK8bZ kdT7rtS5AFRK2rTuzHsaVn9lNn3M0aSOleZ+hHTR4oDXKGWLsFKJDqDm5I6a7RVNfaYpfPd+QZ+uq /8nRg9Sl7S7jid8LwrY250h+TCHwm6En4M3k0L5qX1JGw7mAjo6OXrkOPs/1RN+dlhaieP2f66E4c VxzjEWhakeyUGd/B5gctNy4titAI4dLAXmEoKwDgnFLroPXhYeEuGfygbg6jGDpjG9sqKe+vb/PrG hXQjQtpsXsSCZiFw4mQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCxOJ-007C49-9S; Wed, 04 Jan 2023 06:36:47 +0000 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCxMp-007BHm-BO; Wed, 04 Jan 2023 06:35:16 +0000 Received: by mail-pg1-x533.google.com with SMTP id v3so21603025pgh.4; Tue, 03 Jan 2023 22:35:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5i2PAsadZxre+fZA40ApSOO4k6rDBMhHG9OHUSd1jK0=; b=gAU5b++TyEBAGOOaOjV+IHnXy9gGfUTiYm9Ah5+13Veoa4PyVgvxtlUrJbzk1V5sa8 AcmbmoM63BK7EcMazLZ+5+ksoUUBV4oKeYdzfMi/cjQJlqjA+Ozr1k/UUT0bugDyccfv Ws5ridHBCE+02PZxSg8qgC+RdpMVR7YW8LaNn4UAUqkUlTRVO426XC2NlSmJ0QoDZWbG UbtWr4etQF+jokXd1g4um6O/bTDPKAK2WoE1WcQ7lxR2KB1+gyC3PkD5y7vkWifaubjb jtvlU7Uq0JfA4iU1+NqoukvI0jAXDKOszVV7xPRs4BDXNHp6N9caWLIzFyo86ylzz7dn P9JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5i2PAsadZxre+fZA40ApSOO4k6rDBMhHG9OHUSd1jK0=; b=jcnFsVME4dKS29r6uEub70tamjXUZS9V1Aky58QEwnnE6bsfiANh3dJsj3rjkJrgDQ wq6J0lSDwK2UYj1llTWExVXvsuJGKw20ADrDzODlVvMhFRmb4GrVkhWqGaq2mKkwSdPJ 0LkAmYYFh14rwKGgvRx7bcI0BGxG1E6/pmwkXHFsKdwry6RDWu1HyKsMBlkdqiZjvwsM D1zhM8wH02GXd9VnBntn0FoaaaiULzQbdin1t9oRAsokScDu1ZO8n7hnDdNHaQVAp8X6 HIx5DhRqFVqREVyy8d9zkoGLBj8lkufHczVArYdDGQQE+/Ehn3sykxLZPI7RsUW+Cpdo cQJQ== X-Gm-Message-State: AFqh2kqRQaqi3upT6wg8GxlUoSZECZChfAVCHSx4rlUFMhtXnh7X3pNM b90bCqkTS1qvuczgVnwqNd4= X-Google-Smtp-Source: AMrXdXvi6Dj8Q8jPRtltXyZIDqYzpi3IkyqsCHG995ldQ2iwyBQ2irb4AHPBwcV/AwV9CgE0Jc2w3A== X-Received: by 2002:a05:6a00:21ce:b0:581:26c2:aa0a with SMTP id t14-20020a056a0021ce00b0058126c2aa0amr43392435pfj.30.1672814112856; Tue, 03 Jan 2023 22:35:12 -0800 (PST) Received: from guoguo-thinkbook.lan ([240e:379:964:5365:9621:efdc:4c9e:b465]) by smtp.gmail.com with ESMTPSA id 67-20020a621446000000b0056d98e359a5sm20378439pfu.165.2023.01.03.22.35.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Jan 2023 22:35:11 -0800 (PST) From: Chuanhong Guo To: linux-wireless@vger.kernel.org Cc: Chuanhong Guo , Felix Fietkau , Lorenzo Bianconi , Ryder Lee , Shayne Chen , Sean Wang , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , Deren Wu , YN Chen , Ben Greear , netdev@vger.kernel.org (open list:NETWORKING DRIVERS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-mediatek@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] wifi: mt76: mt7921u: add support for Comfast CF-952AX Date: Wed, 4 Jan 2023 14:33:38 +0800 Message-Id: <20230104063341.18863-1-gch981213@gmail.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230103_223515_524718_069BB7EC X-CRM114-Status: GOOD ( 10.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Comfast CF-952AX is a MT7921 based USB WiFi dongle with custom VID/PID. Add an entry for it. Signed-off-by: Chuanhong Guo --- drivers/net/wireless/mediatek/mt76/mt7921/usb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/usb.c b/drivers/net/wireless/mediatek/mt76/mt7921/usb.c index 5321d20dcdcb..a0778ecdb995 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/usb.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/usb.c @@ -15,6 +15,9 @@ static const struct usb_device_id mt7921u_device_table[] = { { USB_DEVICE_AND_INTERFACE_INFO(0x0e8d, 0x7961, 0xff, 0xff, 0xff), .driver_info = (kernel_ulong_t)MT7921_FIRMWARE_WM }, + /* Comfast CF-952AX */ + { USB_DEVICE_AND_INTERFACE_INFO(0x3574, 0x6211, 0xff, 0xff, 0xff), + .driver_info = (kernel_ulong_t)MT7921_FIRMWARE_WM }, { }, };