From patchwork Mon Jan 4 18:00:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Wang X-Patchwork-Id: 356654 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A140C433E0 for ; Mon, 4 Jan 2021 18:01:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 63419216C4 for ; Mon, 4 Jan 2021 18:01:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727008AbhADSBI (ORCPT ); Mon, 4 Jan 2021 13:01:08 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:33089 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725921AbhADSBH (ORCPT ); Mon, 4 Jan 2021 13:01:07 -0500 X-UUID: c26855aad3e047ef876eb9863c9bf4e5-20210105 X-UUID: c26855aad3e047ef876eb9863c9bf4e5-20210105 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.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 1940004791; Tue, 05 Jan 2021 02:00:21 +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:20 +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:20 +0800 From: To: , CC: , , , , , , , , , , Sean Wang Subject: [PATCH -next v5 00/15] introduce mt7921e support Date: Tue, 5 Jan 2021 02:00:04 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 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 Lorenzo Bianconi (2): mt76: move mac_work in mt76_core module mt76: move chainmask in mt76_phy Sean Wang (13): 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 drivers/net/wireless/mediatek/mt76/Kconfig | 1 + drivers/net/wireless/mediatek/mt76/Makefile | 1 + drivers/net/wireless/mediatek/mt76/mt76.h | 5 +- .../net/wireless/mediatek/mt76/mt7603/init.c | 2 +- .../net/wireless/mediatek/mt76/mt7603/mac.c | 14 +- .../net/wireless/mediatek/mt76/mt7603/main.c | 10 +- .../wireless/mediatek/mt76/mt7603/mt7603.h | 2 - .../wireless/mediatek/mt76/mt7615/eeprom.c | 2 +- .../net/wireless/mediatek/mt76/mt7615/init.c | 16 +- .../net/wireless/mediatek/mt76/mt7615/mac.c | 27 +- .../net/wireless/mediatek/mt76/mt7615/main.c | 15 +- .../net/wireless/mediatek/mt76/mt7615/mcu.c | 4 +- .../wireless/mediatek/mt76/mt7615/mt7615.h | 5 - .../wireless/mediatek/mt76/mt7615/testmode.c | 4 +- .../net/wireless/mediatek/mt76/mt7615/usb.c | 2 +- .../net/wireless/mediatek/mt76/mt76x0/pci.c | 4 +- .../net/wireless/mediatek/mt76/mt76x0/usb.c | 4 +- drivers/net/wireless/mediatek/mt76/mt76x02.h | 2 - .../net/wireless/mediatek/mt76/mt76x02_mac.c | 10 +- .../net/wireless/mediatek/mt76/mt76x02_phy.c | 4 +- .../net/wireless/mediatek/mt76/mt76x02_util.c | 6 +- .../net/wireless/mediatek/mt76/mt76x2/mcu.c | 2 +- .../wireless/mediatek/mt76/mt76x2/pci_init.c | 2 +- .../wireless/mediatek/mt76/mt76x2/pci_main.c | 4 +- .../wireless/mediatek/mt76/mt76x2/usb_init.c | 2 +- .../wireless/mediatek/mt76/mt76x2/usb_main.c | 2 +- .../wireless/mediatek/mt76/mt7915/eeprom.c | 2 +- .../net/wireless/mediatek/mt76/mt7915/init.c | 17 +- .../net/wireless/mediatek/mt76/mt7915/mac.c | 31 +- .../net/wireless/mediatek/mt76/mt7915/main.c | 11 +- .../net/wireless/mediatek/mt76/mt7915/mcu.c | 8 +- .../wireless/mediatek/mt76/mt7915/mt7915.h | 3 - .../wireless/mediatek/mt76/mt7915/testmode.c | 2 +- .../net/wireless/mediatek/mt76/mt7921/Kconfig | 10 + .../wireless/mediatek/mt76/mt7921/Makefile | 5 + .../wireless/mediatek/mt76/mt7921/debugfs.c | 178 + .../net/wireless/mediatek/mt76/mt7921/dma.c | 356 ++ .../wireless/mediatek/mt76/mt7921/eeprom.c | 101 + .../wireless/mediatek/mt76/mt7921/eeprom.h | 27 + .../net/wireless/mediatek/mt76/mt7921/init.c | 254 ++ .../net/wireless/mediatek/mt76/mt7921/mac.c | 1393 ++++++++ .../net/wireless/mediatek/mt76/mt7921/mac.h | 333 ++ .../net/wireless/mediatek/mt76/mt7921/main.c | 1051 ++++++ .../net/wireless/mediatek/mt76/mt7921/mcu.c | 2932 +++++++++++++++++ .../net/wireless/mediatek/mt76/mt7921/mcu.h | 1175 +++++++ .../wireless/mediatek/mt76/mt7921/mt7921.h | 377 +++ .../net/wireless/mediatek/mt76/mt7921/pci.c | 279 ++ .../net/wireless/mediatek/mt76/mt7921/regs.h | 413 +++ 48 files changed, 8995 insertions(+), 115 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