Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp475876pxb; Wed, 20 Jan 2021 11:36:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBEn+db1sbMKlEbA4HNGrWVyCMaVIdlDo5MQaQiBIBkI/Sjb7DzPNxWRJGIqq0iRMVv7IM X-Received: by 2002:a50:d80c:: with SMTP id o12mr8142682edj.338.1611171360476; Wed, 20 Jan 2021 11:36:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611171360; cv=none; d=google.com; s=arc-20160816; b=EcKw8EEjXnZ2CcfN91RuUR2ONhPmfd9Rl13tgjfnPvPWkkbdKDpiJ4GQ54Ugt3SgbM YVjpZZhLY3FADBswCdVp4cCJ1vQOwHC07AKTgHUuuRNxjvsdUS+2OCcbj1rikHcn7x0S By/iUw5oC04edlEjgewGi2quohhKQLxuZnpuX3pWn20bZBpA0TLuH/n0sR8acAe9NCed Y5MivHqFPzKVwWyvsA8jQQIUggEAEH8TRLOAkW9WIREQeK2ucNdG506Oo+VLYJXHSlit E0lBB5ARQ8Qu2+n7RpkLVKJAnAO38vesEhaxcW3FQJrTKcSsDixvjw/eidKMar+ARzsP a9bQ== 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=vPcDiR6JtLy5FYKlkX+GrisIa6KbrTu+zmDGLVsxCwI=; b=EFfp9XDpjhPEliXyCcHK1WrM50V9Q97VpnXu5Q5vPRZlFA7aeg9MyIgN9wbQL+xzlY o8Z73PeRQc/DHovwEMEDtcNqoMlcBHHqVKzhVxEFFrY8NgX5kfDLfQVuN2SAfzKzzzYC 94DxmBW0do2egyjJ1cXs7cYNhcmYfFe+8yt9l82OFj5FbsQP8ZoD3UQeBEsRGZRZiAC4 n7EAIIe8+6oARhkRcSf3D8tXzK2eJVCiGhJ7mUoc46t/8CFrFMDLnomD3+cLUzI4NQds dkI2JOuIOiBWBuPO6OIpsbqnQGkQOxF4PwkENFRKnxjf5mVKCD5zlfHsIcDyh9QdduW6 uCDg== 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 bl4si1052559ejb.47.2021.01.20.11.35.34; Wed, 20 Jan 2021 11:36:00 -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 S2392572AbhATTfW (ORCPT + 99 others); Wed, 20 Jan 2021 14:35:22 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:48759 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2392507AbhATTex (ORCPT ); Wed, 20 Jan 2021 14:34:53 -0500 X-UUID: 14f9a480498f450ba828d7293d01eda2-20210121 X-UUID: 14f9a480498f450ba828d7293d01eda2-20210121 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] 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 69438910; Thu, 21 Jan 2021 03:33:54 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 21 Jan 2021 03:33:53 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 21 Jan 2021 03:33:53 +0800 From: To: , CC: , , , , , , , , , , Sean Wang Subject: [PATCH -next v6 00/15] introduce mt7921e support Date: Thu, 21 Jan 2021 03:33:36 +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 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 | 2983 +++++++++++++++++ .../net/wireless/mediatek/mt76/mt7921/mcu.h | 1176 +++++++ .../wireless/mediatek/mt76/mt7921/mt7921.h | 379 +++ .../net/wireless/mediatek/mt76/mt7921/pci.c | 279 ++ .../net/wireless/mediatek/mt76/mt7921/regs.h | 413 +++ 48 files changed, 9049 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