Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp189364rwj; Sat, 17 Dec 2022 06:20:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXttmuBSFA42cvH8dhBiqmu5QAQPExDZnRs658q0SmaVtNwLjiDP9U7YtFtVLS4Crbk4XtHW X-Received: by 2002:a17:907:9711:b0:7e7:4dd7:bc0c with SMTP id jg17-20020a170907971100b007e74dd7bc0cmr4554061ejc.66.1671286812302; Sat, 17 Dec 2022 06:20:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671286812; cv=none; d=google.com; s=arc-20160816; b=eOKaZ8eeFEqaYH5oNnVqZ/TGXsITHpIb+HQZxQn3PV61XnS4G7lB6fuHnLsbo/K84M m4YzHodQ2KvtXzA2WXaWMxnWBMj9+NrTmsQHyjJuCJ4n0Z9i/OOm32nMa0JDYh5e+ee7 W4CXdWKe1l6O6FGD20oBS76yBET1UvUc/UICj4lCNWwijPRBPzFJo0RuL9S5MHDEau6i Er7xtQW+Gqq7dOCTH3mgtQkmbEmFBlyj8ETRRMSx9VIQK5yaPUC/qAj1dyy5lSg3Fhk4 O451WjzWiHlgeBheQRbNz5E7tvp9+5+HmUndukCrHSx8w8VqVCF8/SRjWz8kKoIrgVhB L9UQ== 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=KFQRGoeWiGOuPhWebyBB/W70tsFsgMhzwsgNE+1Z5Ls=; b=ehSuXkCjtnVJ0LUkoj3/+796f5p6hzL2hWHNuhRmhEqT4U6sjd76++R3vYmhZjf7D/ RIo79OQsisxAy5i4FXhCFFY8fuDe3HVxJVUbLvxN0PJmIbHkHP9l4hrI2jgrB9DracOa aA4Lpya/+S0VFpZrlqrsoFKkesQsmJI79bNc3ggsCYptY7fGyrXBb9SJEkO75QJSdpHP GxekVcJP/GQdpEcGxgXseclpmakn0tdb2XoEs99qa640ANV60nla02xrdTYng8NJTI0Z mRR4mtpbHBrCTgyRGglSrbAOluQVgdBP2l1R58R2Obwga0pHgGfEkHBoIcEhAPw0S9x0 Qibw== 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 wl14-20020a170907310e00b007aea2b23ee3si3431212ejb.277.2022.12.17.06.19.56; Sat, 17 Dec 2022 06:20:12 -0800 (PST) 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 S230372AbiLQOSO (ORCPT + 66 others); Sat, 17 Dec 2022 09:18:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230370AbiLQOSM (ORCPT ); Sat, 17 Dec 2022 09:18:12 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 93D0BA1AA for ; Sat, 17 Dec 2022 06:18:11 -0800 (PST) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 2BHEH6q04024801, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 2BHEH6q04024801 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Sat, 17 Dec 2022 22:17:06 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.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.2507.9; Sat, 17 Dec 2022 22:17:57 +0800 Received: from localhost (172.16.16.141) 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; Sat, 17 Dec 2022 22:17:56 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 0/7] wifi: rtw89: add BTC format version to support newer firmware and features Date: Sat, 17 Dec 2022 22:17:38 +0800 Message-ID: <20221217141745.43291-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.16.16.141] 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: 12/17/2022 14:00: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?Q2xlYW4sIGJhc2VzOiAyMDIyLzEyLzE3IKRXpMggMTE6MjQ6MDA=?= X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled 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 With more chips support, BT coexistence needs to handle newer firmware and features. In vendor driver, versions of BT coexistence, firmware and features are all fixed, which means it doesn't consider that a BT coexistence can work well with _all_ firmware; instead, rtw89 must be. The method we propose in this patchset is to add a btc_ver, namely 'struct rtw89_btc_ver', to define BTC formation version for specific chip and firmware version. Also, this can be extended to define which BTC features firmware can support. Therefore, we define btc_ver in first patch, and then remove old design version number from chip_info by second patch. Later patches are to adjust the code to close our desire step by step. To review easier, we keep patches smaller and backward compatible, so the number of total patches is about 20+, and this patchset only contains partial patches. Ching-Te Ku (5): wifi: rtw89: coex: Enable Bluetooth report when show debug info wifi: rtw89: coex: Update BTC firmware report bitmap definition wifi: rtw89: coex: Add v2 BT AFH report and related variable wifi: rtw89: coex: refactor _chk_btc_report() to extend more features wifi: rtw89: coex: Change TDMA related logic to version separate Ping-Ke Shih (2): wifi: rtw89: coex: add BTC format version derived from firmware version wifi: rtw89: coex: use new introduction BTC version format drivers/net/wireless/realtek/rtw89/coex.c | 792 +++++++++++------- drivers/net/wireless/realtek/rtw89/coex.h | 1 + drivers/net/wireless/realtek/rtw89/core.h | 106 ++- drivers/net/wireless/realtek/rtw89/fw.c | 2 + drivers/net/wireless/realtek/rtw89/rtw8852a.c | 14 - drivers/net/wireless/realtek/rtw89/rtw8852b.c | 15 +- drivers/net/wireless/realtek/rtw89/rtw8852c.c | 14 - 7 files changed, 581 insertions(+), 363 deletions(-) -- 2.25.1