Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13996912pxu; Mon, 4 Jan 2021 10:02:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwT1tJz6v1TWu41He0kBm/+2GxzSLre5WYXriOL3fNGVRXjSn1jWORrhhpRpyGSWTdId2Rn X-Received: by 2002:a05:6402:404:: with SMTP id q4mr73596818edv.295.1609783368392; Mon, 04 Jan 2021 10:02:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609783368; cv=none; d=google.com; s=arc-20160816; b=eKmn9VjFngORV6hKyjs4fWWE7a1SOjvt7jnJT6pFQd1+s5IFItkeYBK4kjas5KA8sT S6hFAa0Tt8KFLx0OGvPUc0mSCznNVWocjojNU2vXJFpBpK8jpgkBriylXBMAHlsjy1u3 VpJ2v3pEDlW/ukmLkrUdHhsHrmwVyG8/ZudyZMnmaW7ALbBfNCyR8INFwqrF9duAX6y4 k0US3T78O+/AlaPKJD+RC2P2HNanaHdg03XP9hQue+jA6ZCi5SR95zAB3k0dKRJTlfBe l3JO/kYol1IDOCRLTx/OfYwG/OuCJexk8iMEcQz1hlySf675PjpZfiTNcIfp92P1qXuc SMhQ== 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=HkWo7WUmqhmrwPcbcmDvXYqRKk+wFyPA5XKQDBlveCY=; b=eCaV2vrCV5VhWkyhl40eqNcxfR2XrMNHSjyUIDbai77ArKEyug29jnBh9GoT6Cg4fl pme2ffS4enDJIn1pKhKLG6P5JF2O2rHZaoxUKcCIOqgmUcjiiupm4ksWgq4MLxq09on1 zwz84GeFQOy/ySLuglGMX9U1KcUcRdB4SjFnTXWGlBxM7uLDxyCRJK6RFGa+85DAHyOl xQDVlCX/q+HQqZ+LxT+nkP9d5qO6p1fAk6sZk74Oh7No0yytG6waiZsLbrh8e5FXD0fa wQrwm+p1Le9K/T6h0QSCM42xLDy0T5Zgds5DypB3s5E7yNAHvqootwMvhnFBp4N+Opnw S3YA== 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 ov28si26423397ejb.512.2021.01.04.10.02.25; Mon, 04 Jan 2021 10:02:48 -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 S1726939AbhADSBI (ORCPT + 99 others); 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 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 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