From patchwork Wed Jun 28 07:07:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deren Wu X-Patchwork-Id: 13295305 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7236C001B3 for ; Wed, 28 Jun 2023 07:55:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229921AbjF1Hz6 (ORCPT ); Wed, 28 Jun 2023 03:55:58 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:52764 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229789AbjF1HyI (ORCPT ); Wed, 28 Jun 2023 03:54:08 -0400 X-UUID: a6c9074c158211eeb20a276fd37b9834-20230628 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=XcTpzYWutNflNwjCLThIvSL7Y9MEaSFxW50yimtDcuw=; b=iAghYf1b/aJACKPMVi9pw8/eYRDZk44imQ2mfjvrcjviUsQRq/WUy+DzGfFaIJaO256U5kiQXtaP1dp9+tP8cni+oORrpB1V7mpvnkQU/zTWVQNY1dMVAIIc9dL6rZe2m5stlRRidXMdnk9MOgiOeg2d2GuCSPoe7UkAoit37QU=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.27,REQID:a714f296-f63a-4d2a-818b-ae3bb6bd52a4,IP:0,U RL:0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:70 X-CID-INFO: VERSION:1.1.27,REQID:a714f296-f63a-4d2a-818b-ae3bb6bd52a4,IP:0,URL :0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTI ON:quarantine,TS:70 X-CID-META: VersionHash:01c9525,CLOUDID:a5764f0d-26a8-467f-b838-f99719a9c083,B ulkID:2306281508597AFSFUDL,BulkQuantity:0,Recheck:0,SF:38|29|28|17|19|48,T C:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0,AV:0,LES:1,SPR:NO X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_SDM,TF_CID_SPAM_ASC,TF_CID_SPAM_FAS, TF_CID_SPAM_FSD X-UUID: a6c9074c158211eeb20a276fd37b9834-20230628 Received: from mtkmbs14n2.mediatek.inc [(172.21.101.76)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 124359087; Wed, 28 Jun 2023 15:08:58 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Wed, 28 Jun 2023 15:08:57 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Wed, 28 Jun 2023 15:08:57 +0800 From: Deren Wu To: Felix Fietkau , Lorenzo Bianconi CC: Sean Wang , Ryder Lee , Shayne Chen , linux-wireless , linux-mediatek , Deren Wu Subject: [PATCH 00/11] mt76: introduce mt792x-usb support Date: Wed, 28 Jun 2023 15:07:13 +0800 Message-ID: X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This patch set includes the new module mt792x-usb support. Move some common header/functions from mt7921 to mt792x and also rename prefix to mt792x. The new module would integrate the common functionalities of mt76 station driver mt7921 and upcoming WiFi7 solution. (This patch set is based on preceding series "mt76: introduce mt792x-lib support") Lorenzo Bianconi (11): wifi: mt76: mt792x: move more dma shared code in mt792x_dma wifi: mt76: mt7921: move hif_ops macro in mt792x.h wifi: mt76: mt7921: move shared runtime-pm code on mt792x-lib wifi: mt76: mt7921: move runtime-pm pci code in mt792x-lib wifi: mt76: mt7921: move acpi_sar code in mt792x-lib module wifi: mt76: mt792x: introduce mt792x-usb module wifi: mt76: mt792x: move mt7921_load_firmware in mt792x-lib module wifi: mt76: mt76_connac3: move lmac queue enumeration in mt76_connac3_mac.h wifi: mt76: mt792x: move MT7921_PM_TIMEOUT and MT7921_HW_SCAN_TIMEOUT in common code wifi: mt76: mt7921: move mt7921_dma_init in pci.c wifi: mt76: mt7921: move mt7921u_disconnect mt792x-lib drivers/net/wireless/mediatek/mt76/Kconfig | 4 + drivers/net/wireless/mediatek/mt76/Makefile | 5 +- .../wireless/mediatek/mt76/mt76_connac3_mac.h | 14 + .../net/wireless/mediatek/mt76/mt7921/Kconfig | 2 +- .../wireless/mediatek/mt76/mt7921/Makefile | 5 +- .../wireless/mediatek/mt76/mt7921/acpi_sar.h | 105 ------ .../net/wireless/mediatek/mt76/mt7921/dma.c | 223 ------------ .../net/wireless/mediatek/mt76/mt7921/init.c | 16 +- .../net/wireless/mediatek/mt76/mt7921/mac.c | 72 +--- .../net/wireless/mediatek/mt76/mt7921/main.c | 11 +- .../net/wireless/mediatek/mt76/mt7921/mcu.c | 111 +----- .../wireless/mediatek/mt76/mt7921/mt7921.h | 61 ---- .../net/wireless/mediatek/mt76/mt7921/pci.c | 170 +++++---- .../wireless/mediatek/mt76/mt7921/pci_mac.c | 4 +- .../wireless/mediatek/mt76/mt7921/pci_mcu.c | 65 ---- .../net/wireless/mediatek/mt76/mt7921/sdio.c | 6 +- .../wireless/mediatek/mt76/mt7921/testmode.c | 2 +- .../net/wireless/mediatek/mt76/mt7921/usb.c | 179 ++++----- .../wireless/mediatek/mt76/mt7921/usb_mac.c | 255 ------------- drivers/net/wireless/mediatek/mt76/mt792x.h | 94 ++++- .../{mt7921/acpi_sar.c => mt792x_acpi_sar.c} | 125 ++++--- .../wireless/mediatek/mt76/mt792x_acpi_sar.h | 105 ++++++ .../net/wireless/mediatek/mt76/mt792x_core.c | 244 ++++++++----- .../net/wireless/mediatek/mt76/mt792x_dma.c | 344 ++++++++++++++++++ .../net/wireless/mediatek/mt76/mt792x_mac.c | 72 ++++ .../net/wireless/mediatek/mt76/mt792x_usb.c | 309 ++++++++++++++++ .../wireless/mediatek/mt76/mt7996/mt7996.h | 14 - 27 files changed, 1334 insertions(+), 1283 deletions(-) delete mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/acpi_sar.h delete mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/dma.c delete mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/usb_mac.c rename drivers/net/wireless/mediatek/mt76/{mt7921/acpi_sar.c => mt792x_acpi_sar.c} (64%) create mode 100644 drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.h create mode 100644 drivers/net/wireless/mediatek/mt76/mt792x_dma.c create mode 100644 drivers/net/wireless/mediatek/mt76/mt792x_usb.c