Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp537553rwb; Thu, 22 Sep 2022 23:59:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5xHePIgpWQOhdAxSup6eMGv5ZOf72c/kKfHnu8nxs7JpUwIJePc3A+CBNGxHsEtD8Da/Cq X-Received: by 2002:a63:2162:0:b0:43c:96b:e5a8 with SMTP id s34-20020a632162000000b0043c096be5a8mr6281729pgm.143.1663916347413; Thu, 22 Sep 2022 23:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663916347; cv=none; d=google.com; s=arc-20160816; b=AoPKpikG1Fp4Q3ZFxm40mU75Q+sgprFu/YKrsTxnQ4MUbY/CmAwwqaefZTFjk8aUgh /xJVLJonQQMorlUZt+OaBLLhPSMGbORx05k6mWeknmBR0gt4OR3lo86ZWj95OVk6CMqe GjzTXYLi1OYXZqL9xS6UwnJD++ul6FMB0eAF24EeW3ETb59R3NgbdWxHFY5UF0UJGrgq SMqRRcjmxWxR7fviXiQU+inWMOklaG0Ub7V2wJV/HZkningf7u3sZMpV16a9W40ccAfy dyFjUZB5TjHeTqXHD0psduSV2WeO0tHx69jEy4yhr1miJx+IMhnkNVeXIX/UFDDcqacf QDDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:authenticated-by; bh=MFVDvzi8cxmHe0GKgZ94H6aYKtyBBj0Soq0yVMSqzA4=; b=CMJrmQkis7OMIBigzmIN6XRCeCJdCGrEgUMZLdk1EJHCDjcVhePXEh16Mbp4UGThf+ 6wwDlqdqcX+Rih4F23uLdqHHiUPfOHPPKS7huhSxekAlNlXz/bArC5abiHyc6xyUdULX DWmqgKmjPaymNO5sa/mY0P1Cc/SBIuwKasO0M0Ts7UZE3ut6hdiaKWjWw7nPlqtN2VFe yCAhrYTpnD+RoUz1Hdnx7OTg7PhQKYJXzXzLLsYutRFMP+FmtIRzmKHLHE0Wf5iCtJvW BdiXO2UR7f18rDCIq1AkIZ4BDtzOauojKlb2Qbvxmey7/GAMXRYN6Pr1jlCA9MkFWwAP Vq8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a15-20020a17090abe0f00b001fe2ab750b6si1646025pjs.146.2022.09.22.23.58.58; Thu, 22 Sep 2022 23:59:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230074AbiIWGyQ (ORCPT + 62 others); Fri, 23 Sep 2022 02:54:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbiIWGyN (ORCPT ); Fri, 23 Sep 2022 02:54:13 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 490C9128A3D for ; Thu, 22 Sep 2022 23:54:07 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 28N6rTcF5020779, 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.81/5.90) with ESMTPS id 28N6rTcF5020779 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Fri, 23 Sep 2022 14:53:29 +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.2375.7; Fri, 23 Sep 2022 14:53:52 +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.2375.7; Fri, 23 Sep 2022 14:53:52 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH 0/9] wifi: rtw89: adjust shared code to support 8852BE Date: Fri, 23 Sep 2022 14:53:02 +0800 Message-ID: <20220923065311.123356-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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: 09/23/2022 06:38:00 X-KSE-AttachmentFiltering-Interceptor-Info: no applicable attachment filtering rules found X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: =?big5?B?Q2xlYW4sIGJhc2VzOiAyMDIyLzkvMjMgpFekyCAwMzozMDowMA==?= X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-ServerInfo: RTEXH36504.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 8852BE is a WiFi 6 chip. Its features are similar to 8852AE, but only support single one channel context, so mask out unsupported MAC and PCI channels for 8852BE. First three patches do this thing. The remaining patches are to adjust other specific things for 8852BE. Ping-Ke Shih (9): wifi: rtw89: pci: mask out unsupported TX channels wifi: rtw89: mac: define DMA channel mask to avoid unsupported channels wifi: rtw89: add DMA busy checking bits to chip info wifi: rtw89: 8852b: implement chip_ops::{enable,disable}_bb_rf wifi: rtw89: pci: add to do PCI auto calibration wifi: rtw89: pci: set power cut closed for 8852be wifi: rtw89: mac: correct register of report IMR wifi: rtw89: check DLE FIFO size with reserved size wifi: rtw89: 8852b: configure DLE mem drivers/net/wireless/realtek/rtw89/core.c | 4 +- drivers/net/wireless/realtek/rtw89/core.h | 5 +- drivers/net/wireless/realtek/rtw89/mac.c | 47 ++++++++-- drivers/net/wireless/realtek/rtw89/mac.h | 15 ++- drivers/net/wireless/realtek/rtw89/pci.c | 46 +++++++-- drivers/net/wireless/realtek/rtw89/pci.h | 13 ++- drivers/net/wireless/realtek/rtw89/reg.h | 11 ++- drivers/net/wireless/realtek/rtw89/rtw8852a.c | 3 + .../net/wireless/realtek/rtw89/rtw8852ae.c | 3 +- drivers/net/wireless/realtek/rtw89/rtw8852b.c | 94 +++++++++++++++++++ .../net/wireless/realtek/rtw89/rtw8852be.c | 25 +++++ drivers/net/wireless/realtek/rtw89/rtw8852c.c | 7 +- .../net/wireless/realtek/rtw89/rtw8852ce.c | 3 +- 13 files changed, 252 insertions(+), 24 deletions(-) create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8852b.c create mode 100644 drivers/net/wireless/realtek/rtw89/rtw8852be.c -- 2.25.1