Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13997093pxu; Mon, 4 Jan 2021 10:03:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhvA+kZQfpGmTNVP8/HCdomeiT5/YvMwkihssbU+I43qF+KWT4VhhhTUEsVxNT2v8huixA X-Received: by 2002:a05:6402:1ad1:: with SMTP id ba17mr70370667edb.51.1609783385304; Mon, 04 Jan 2021 10:03:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609783385; cv=none; d=google.com; s=arc-20160816; b=pKlRo8aA7ifWSU4b8rSnO9PorqCf6ZO5hhAix4tl3MW228leQt3R7TbtNqkjTDLUaV UJWnARCl92OGYO79dq7tHTYKsXCVd9xFzy6vylwzv/GXIpqTjj79drJTdsljiy/cOKgP wlTkQcj1bq+pOHaSxqycENhOWMeF5ySWq6sWVg8/ufnqW4Dm2rlRbrS/+ui5UWA1ke0w pI9mHc/u72muLO8b5Cg/EXg8E774HDOzoUa0f+1cwLt43bsYbOeIOeh0/PuXEeLGs+s9 iD9LByqz6Z1w9iqWsm/psT4m3H/0Om1L9pMXTkB0ZNZ/me5bzEpfUE8dpciD0VCyMym3 KEAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=lXSvxmhRJNhXf984up4d6sJQBb+htsAMGrDFgqbpg3o=; b=ts+LgZDYhKdenJ/k8RMjxwmSMJh0hd1WCIfMWR8JLNnzXYRlJFxvU3I/Mvw3CSzDhW HS8l0ioCsHyhcxc9I66A+XGX1bn9eW0+UFVHaMYMYk7K8k9tvwbCCshd2QzcjtK6wbeP oqrWjtj3iw8ZutJyIUAzICWudUosCaApyVr5U4aBo8DzoRNeoFHzWOnzam9Wsm9IzwS7 e/3GIb9GsBg3Ysv0ker1DKpnLKz69AfCPPB0wLJyxmrgqYXdx1yX0dOCanK1j6QwphYG NO1tXxaPVwNfLyRQlFclXkAsFvKZoCCrNCvWH90uDAkaicMLQIMZCHOt7n1PFk3PB4hI fH4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu21si32988492edb.199.2021.01.04.10.02.43; Mon, 04 Jan 2021 10:03:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727318AbhADSBY (ORCPT + 99 others); Mon, 4 Jan 2021 13:01:24 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:57557 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726396AbhADSBY (ORCPT ); Mon, 4 Jan 2021 13:01:24 -0500 X-UUID: 7a59cdd9e5fd429287d4b1aec2e983a9-20210105 X-UUID: 7a59cdd9e5fd429287d4b1aec2e983a9-20210105 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2122114052; Tue, 05 Jan 2021 02:00:23 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 5 Jan 2021 02:00:22 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 5 Jan 2021 02:00:22 +0800 From: To: , CC: , , , , , , , , , , Lorenzo Bianconi Subject: [PATCH -next v5 10/15] mt76: mt7921: add module support Date: Tue, 5 Jan 2021 02:00:14 +0800 Message-ID: <3b0bbd318d1507dc747a37cef57ef2207ec72cc0.1609781247.git.objelf@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Sean Wang Add mt7921 as the pci driver module. The purpose of the patch is to check about if the following patches are able to compile properly. Co-developed-by: Lorenzo Bianconi Signed-off-by: Lorenzo Bianconi Co-developed-by: Soul Huang Signed-off-by: Soul Huang Signed-off-by: Sean Wang --- drivers/net/wireless/mediatek/mt76/Kconfig | 1 + drivers/net/wireless/mediatek/mt76/Makefile | 1 + drivers/net/wireless/mediatek/mt76/mt7921/Kconfig | 10 ++++++++++ drivers/net/wireless/mediatek/mt76/mt7921/Makefile | 5 +++++ 4 files changed, 17 insertions(+) create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/Kconfig create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/Makefile diff --git a/drivers/net/wireless/mediatek/mt76/Kconfig b/drivers/net/wireless/mediatek/mt76/Kconfig index 31015d2a8e7d..5f42ce3267cb 100644 --- a/drivers/net/wireless/mediatek/mt76/Kconfig +++ b/drivers/net/wireless/mediatek/mt76/Kconfig @@ -29,3 +29,4 @@ source "drivers/net/wireless/mediatek/mt76/mt76x2/Kconfig" source "drivers/net/wireless/mediatek/mt76/mt7603/Kconfig" source "drivers/net/wireless/mediatek/mt76/mt7615/Kconfig" source "drivers/net/wireless/mediatek/mt76/mt7915/Kconfig" +source "drivers/net/wireless/mediatek/mt76/mt7921/Kconfig" diff --git a/drivers/net/wireless/mediatek/mt76/Makefile b/drivers/net/wireless/mediatek/mt76/Makefile index e53584db0756..1d72093b61a3 100644 --- a/drivers/net/wireless/mediatek/mt76/Makefile +++ b/drivers/net/wireless/mediatek/mt76/Makefile @@ -31,3 +31,4 @@ obj-$(CONFIG_MT76x2_COMMON) += mt76x2/ obj-$(CONFIG_MT7603E) += mt7603/ obj-$(CONFIG_MT7615_COMMON) += mt7615/ obj-$(CONFIG_MT7915E) += mt7915/ +obj-$(CONFIG_MT7921E) += mt7921/ diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/Kconfig b/drivers/net/wireless/mediatek/mt76/mt7921/Kconfig new file mode 100644 index 000000000000..24932d2e8dee --- /dev/null +++ b/drivers/net/wireless/mediatek/mt76/mt7921/Kconfig @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: ISC +config MT7921E + tristate "MediaTek MT7921E (PCIe) support" + select MT76_CORE + depends on MAC80211 + depends on PCI + help + This adds support for MT7921E 802.11ax 2x2:2SS wireless devices. + + To compile this driver as a module, choose M here. diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/Makefile b/drivers/net/wireless/mediatek/mt76/mt7921/Makefile new file mode 100644 index 000000000000..09d1446ad933 --- /dev/null +++ b/drivers/net/wireless/mediatek/mt76/mt7921/Makefile @@ -0,0 +1,5 @@ +#SPDX-License-Identifier: ISC + +obj-$(CONFIG_MT7921E) += mt7921e.o + +mt7921e-y := pci.o mac.o mcu.o dma.o eeprom.o main.o init.o debugfs.o -- 2.25.1