From patchwork Fri Mar 11 03:02:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ping-Ke Shih X-Patchwork-Id: 552191 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 BD46FC433EF for ; Fri, 11 Mar 2022 03:03:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345850AbiCKDE7 (ORCPT ); Thu, 10 Mar 2022 22:04:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231866AbiCKDE5 (ORCPT ); Thu, 10 Mar 2022 22:04:57 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF27C162028 for ; Thu, 10 Mar 2022 19:03:53 -0800 (PST) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.73 with qID 22B33jkD6021440, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36504.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.71/5.88) with ESMTPS id 22B33jkD6021440 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 11 Mar 2022 11:03:45 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36504.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 11 Mar 2022 11:03:45 +0800 Received: from localhost (172.21.69.188) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Fri, 11 Mar 2022 11:03:44 +0800 From: Ping-Ke Shih To: CC: , , , Subject: [PATCH 00/11] rtw89: prepare more shared code to work with 8852c Date: Fri, 11 Mar 2022 11:02:50 +0800 Message-ID: <20220311030301.33921-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [172.21.69.188] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: trusted connection X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Deterministic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 03/11/2022 02:42:00 X-KSE-AttachmentFiltering-Interceptor-Info: no applicable attachment filtering rules found X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: =?big5_tw?b?Q2xlYW4sIGJhc2VzOiAyMDIyLzMvMTEgpFekyCAwMTow?= =?big5_tw?b?NjowMA==?= X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-ServerInfo: RTEXH36504.realtek.com.tw, 9 X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This patchset contains MAC, BB and RF functions. The BB part changes CFO (central frequency offset) tracking functions to be general. The MAC part makes the function work on 8852c. Propose new V1 method to access new design of RF register. As usual, this doesn't affect existing chip, and 8852C is built internally. Chia-Yuan Li (3): rtw89: modify MAC enable functions rtw89: disable FW and H2C function if CPU disabled rtw89: 8852c: add mac_ctrl_path and mac_cfg_gnt APIs Chung-Hsuan Hung (1): rtw89: 8852c: add read/write rf register function Ping-Ke Shih (4): rtw89: add config_rf_reg_v1 to configure RF parameter tables rtw89: initialize preload window of D-MAC rtw89: extend mac tx_en bits from 16 to 32 rtw89: implement stop and resume channels transmission v1 Yuan-Han Zhang (3): rtw89: modify dcfo_comp to share with chips rtw89: 8852c: add write/read crystal function in CFO tracking rtw89: 8852c: add setting of TB UL TX power offset drivers/net/wireless/realtek/rtw89/coex.c | 24 +- drivers/net/wireless/realtek/rtw89/core.h | 47 +++- drivers/net/wireless/realtek/rtw89/mac.c | 225 ++++++++++++++++-- drivers/net/wireless/realtek/rtw89/mac.h | 12 +- drivers/net/wireless/realtek/rtw89/phy.c | 164 ++++++++++++- drivers/net/wireless/realtek/rtw89/phy.h | 9 + drivers/net/wireless/realtek/rtw89/reg.h | 77 ++++++ drivers/net/wireless/realtek/rtw89/rtw8852a.c | 22 +- .../net/wireless/realtek/rtw89/rtw8852a_rfk.c | 24 +- drivers/net/wireless/realtek/rtw89/rtw8852c.c | 50 ++++ 10 files changed, 594 insertions(+), 60 deletions(-)