Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1644615pxb; Sat, 23 Jan 2021 00:37:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8iPxRNMflCtZ0mPodNpdJaB6nrfjnLxmugGrSRy06AhW0Fawu/0NI7KwFGkGboxNvs0S/ X-Received: by 2002:a17:906:8046:: with SMTP id x6mr78743ejw.351.1611391073183; Sat, 23 Jan 2021 00:37:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611391073; cv=none; d=google.com; s=arc-20160816; b=bePVgJI2kCaeGbmk42pXB5ZNiSOWHQB2++a4+7LVMXNKiIhclgxFmPaCrnXhOwr0Js AR9Wt2h0SsVZYWnp5UOYaBvcL5oFnIdW0uruks57NauzhsdkzrzcO7pnp5+jscVwCfpE bLtWyc/sNVQPzo8zf4YQNoQXwEh7lsi6Gl/Oq/Ou0rLRGxpNUvEAH+uY0E2W8HR74gQR PApNwgpb96xVTWgLAyVv+1T0QhFh8EQHVGquPwIlDCiivIIWEoU8IUhb5Y7Y/b1GA7tF yVhwJX+GonjNRaZOJ+oIgXCj26qBX21gDj7j5aTidhUYXkMv3MI8NikjZwDsJyLbxXbh gqcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=RY3+2Clj7U5kywru8UKFIpjQ1hOSNkyySYf+S5vMnQE=; b=IcGYmwq3YODRZWfJlKAO35RBR2HNyZmZmSMCzNXufH2YPyrirOBK+S+NyVc/yxcRaA LfbMlwECtShRBVdFF6Gqg082AiBAt+g1kwkp3NZXLj2AomU+HJDKkwgznZ8mdEneaDuB qBLQGFQWyqVLv99RTjZfb1r+F2glZz+P8SAUBSigpYRIgsBhXYl5BnBWe0Rd9Dn6DbwM LsRjVYdyZO6SH9Ekk2sVyNDtzntD9E3TpxydAXjRK423dVU6hIMCMUQhoNWHPU2tlhQb d9nXx29ckS8PvtZYWeCh0EdQJWrSjEKvK1TQhisS+BAAHL5w9w+hGBzOB2VQv707dCsG Z1Gw== 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 lc24si3944311ejb.11.2021.01.23.00.37.30; Sat, 23 Jan 2021 00:37:53 -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 S1726708AbhAWIgC (ORCPT + 99 others); Sat, 23 Jan 2021 03:36:02 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:50154 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726605AbhAWIgA (ORCPT ); Sat, 23 Jan 2021 03:36:00 -0500 X-UUID: c853dd6b63f645bfb3ca52a4471d4a6c-20210123 X-UUID: c853dd6b63f645bfb3ca52a4471d4a6c-20210123 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] 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 1437877094; Sat, 23 Jan 2021 16:35:15 +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; Sat, 23 Jan 2021 16:35:14 +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; Sat, 23 Jan 2021 16:35:14 +0800 From: To: , CC: , , , , , , , , , , Sean Wang Subject: [PATCH -next v7 00/22] introduce mt7921e support Date: Sat, 23 Jan 2021 16:34:51 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 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 Introduce support for mt7921e 802.11ax (Wi-Fi 6) 2x2:2SS chipset. v2: - Mark the patch as -next v3: - Remove sw scan support - Get rid of dbdc code - Run mt7921_configure_filter hodling mt76 mutex - Correct Txp programming in Txd - Correct fw log to host command - Correct eeprom offset definition - Update rate adaption info report - Remove unused code and fields in struture - Split the previous driver into several patches for easy review v4: - introduce sched scan support - introduce 802.11 PS support in sta mode - introduce support for hardware beacon filter - introduce beacon_loss mcu event - introduce PM support - refine sta_rec_phy and add sta_rec_ra_info - remove incorrect mt7921_mcu_tx_config member - fix erroneous endianness conversion in mt7921_tx_complete_skb() - fix endianness warning in mt7921_get_wtbl_info() - fix endianness warnings in mt7921_mcu_sta_tlv() - remove unused code in mt7921_mcu_send_message - remove scan with random mac until fw is ready - channel domain is added for hw scan v5: - fix implicit conversion from enumeration type - remove unused function declaration - drop zero-length packet to avoid Tx hang - fix MT_CIPHER_BIP_CMAC_128 setkey - reset token when mac_reset happens - create mac.h when mac support is added - reorder the patch of adding module support - move mac_work in mt76_core module - move chainmask in mt76_phy - rebase per moving mac_work in mt76_core module - rebase per moving chainmask in mt76_phy v6: - use UNI_BSS_INFO_BCNFT and UNI_BSS_INFO_PS to carry out enabling hardware beacon filter and 802.11 power saving mode according to the MT7921 firmware v7: - remove the merged patches - rebase onto the series mt76: introduce mt76_connac common module https://patchwork.kernel.org/project/linux-wireless/list/?series=418597 - rely on mt76_connac_mcu common library - rely on mt76_connac_mcu module for sched_scan and hw_scan - rely on mt76_connac_mcu module for suspend and WoW support - introduce regdomain notifier support - enable MSI interrupts - introduce Runtime PM support - add coredump support - add sta statistics - disable Rx header translation on default - set nss to 2 on default Lorenzo Bianconi (6): mt76: mt7921: rely on mt76_connac_mcu common library mt76: mt7921: rely on mt76_connac_mcu module for sched_scan and hw_scan mt76: mt7921: rely on mt76_connac_mcu module for suspend and WoW support mt76: mt7921: introduce regdomain notifier support mt76: mt7921: enable MSI interrupts mt76: mt7663: introduce coredump support Sean Wang (16): mt76: mt7921: add MAC support mt76: mt7921: add MCU support mt76: mt7921: add DMA support mt76: mt7921: add EEPROM support mt76: mt7921: add ieee80211_ops mt76: mt7921: introduce mt7921e support mt76: mt7921: add debugfs support mt76: mt7921: add module support mt76: mt7921: introduce schedule scan support mt76: mt7921: introduce 802.11 PS support in sta mode mt76: mt7921: introduce support for hardware beacon filter mt76: mt7921: introduce beacon_loss mcu event mt76: mt7921: introduce PM support mt76: mt7921: introduce Runtime PM support mt76: mt7921: add coredump support mt76: mt7921: add sta statistics drivers/net/wireless/mediatek/mt76/Kconfig | 1 + drivers/net/wireless/mediatek/mt76/Makefile | 1 + .../net/wireless/mediatek/mt76/mt7615/Kconfig | 1 + .../wireless/mediatek/mt76/mt7615/debugfs.c | 17 + .../net/wireless/mediatek/mt76/mt7615/init.c | 2 + .../net/wireless/mediatek/mt76/mt7615/mac.c | 43 + .../net/wireless/mediatek/mt76/mt7615/mcu.c | 4 + .../net/wireless/mediatek/mt76/mt7615/mcu.h | 1 + .../wireless/mediatek/mt76/mt7615/mt7615.h | 4 +- .../net/wireless/mediatek/mt76/mt76_connac.h | 14 + .../wireless/mediatek/mt76/mt76_connac_mcu.c | 370 +++- .../wireless/mediatek/mt76/mt76_connac_mcu.h | 25 + .../net/wireless/mediatek/mt76/mt7921/Kconfig | 11 + .../wireless/mediatek/mt76/mt7921/Makefile | 5 + .../wireless/mediatek/mt76/mt7921/debugfs.c | 250 +++ .../net/wireless/mediatek/mt76/mt7921/dma.c | 356 ++++ .../wireless/mediatek/mt76/mt7921/eeprom.c | 100 ++ .../wireless/mediatek/mt76/mt7921/eeprom.h | 27 + .../net/wireless/mediatek/mt76/mt7921/init.c | 282 +++ .../net/wireless/mediatek/mt76/mt7921/mac.c | 1516 +++++++++++++++++ .../net/wireless/mediatek/mt76/mt7921/mac.h | 333 ++++ .../net/wireless/mediatek/mt76/mt7921/main.c | 1161 +++++++++++++ .../net/wireless/mediatek/mt76/mt7921/mcu.c | 1308 ++++++++++++++ .../net/wireless/mediatek/mt76/mt7921/mcu.h | 434 +++++ .../wireless/mediatek/mt76/mt7921/mt7921.h | 342 ++++ .../net/wireless/mediatek/mt76/mt7921/pci.c | 292 ++++ .../net/wireless/mediatek/mt76/mt7921/regs.h | 419 +++++ 27 files changed, 7309 insertions(+), 10 deletions(-) create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/Kconfig create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/Makefile create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/dma.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/eeprom.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/eeprom.h create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/init.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/mac.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/mac.h create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/main.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/mcu.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/mcu.h create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/pci.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/regs.h -- 2.25.1