[PATCH -next v7 08/22] mt76: mt7921: add module support

Ryder Lee ryder.lee at mediatek.com
Sat Jan 23 18:48:01 EST 2021


On Sat, 2021-01-23 at 16:34 +0800, sean.wang at mediatek.com wrote:
> From: Sean Wang <sean.wang at mediatek.com>
> 
> 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 <lorenzo at kernel.org>
> Signed-off-by: Lorenzo Bianconi <lorenzo at kernel.org>
> Co-developed-by: Soul Huang <Soul.Huang at mediatek.com>
> Signed-off-by: Soul Huang <Soul.Huang at mediatek.com>
> Signed-off-by: Sean Wang <sean.wang at mediatek.com>
> ---
>  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 74f99f08d0b5..9ff43f1fc50d 100644
> --- a/drivers/net/wireless/mediatek/mt76/Kconfig
> +++ b/drivers/net/wireless/mediatek/mt76/Kconfig
> @@ -33,3 +33,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 eac419c64788..94efe3c29053 100644
> --- a/drivers/net/wireless/mediatek/mt76/Makefile
> +++ b/drivers/net/wireless/mediatek/mt76/Makefile
> @@ -34,3 +34,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

I think it's more reasonable to move this into 'mt76: mt7921: introduce
mt7921e support' to make it complete.

Ryder


More information about the Linux-mediatek mailing list