Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp322868rbe; Thu, 29 Feb 2024 00:00:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWL2zBqHzzmecgDcS0+BGmWzAR0K3t6VZlggg4wBH6upLxhYq2afIwzWWUAX02zxUH0zy09ouxPqQ+shpCYQmYO0UPNm+3v2lMVLJNFgg== X-Google-Smtp-Source: AGHT+IGiMwCfzFgPBKWyADCf0pc9WuHR3bRvJkV1WmeGBSbx99kfj8cLcx9RdaJ8rVAtdpvme0Hk X-Received: by 2002:a05:6a21:1394:b0:1a0:ee91:b132 with SMTP id oa20-20020a056a21139400b001a0ee91b132mr1254325pzb.31.1709193643352; Thu, 29 Feb 2024 00:00:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709193643; cv=pass; d=google.com; s=arc-20160816; b=WIzr5UsQczQ41zIGXQC4iHu38m9dWb1A3B2VbZeacQuHbkNvWa6Xzoqg2RgJQWOU2H A4N+7WctUAh6bGL0PKtt/r0akbhLTpmHKEdGsrPhDs/WMDP2ce5ZAV88KcnZT+SZr/SC mSsCesNp3wGdT+HZX12rKj6I5aNKFpnDseWLLgHVEVL/4GtdeKubxr7kLnaEYzp/TY2/ //5Ajv4Pis+xEp49HQhEyDfpuBc/32DDdyHtfJbsLiDmM1cX20qCSOIgsePLFKvGsfRK VUrDReoNzydE2SFOq92WhZ9HPFeguz0n1yyZm0eAdV27Z/SWN294HOsgnxV47zraEEil P0eQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=3gUc13xnlmf7tTKbX4Byfu5s/PIqR2EM8Br8BIJOyok=; fh=4papc12ra5onpkTOe/ePxQsLw2Ob2gsKo8Ya+y1zEDA=; b=Mr2EvijPkhsqpXXWFXZjxylnwli91wR0dGvVPdyrs/EcymoLZjIVO1w0faZ5/Vw3VS KIGJ8bmVUe+wFe2pNM1K/WWjWyE2wJh3x0Z8UDPaHBxAebZ+ayDcCDMkPjcHKa8BC/GF 3MgwT4f+lUC7ov0Rm6mQa/QoadSFyo1I9LJZV5PnjVoQYbKjACfzjW23IYdxv6Tycgyl 7O35y067LVnaOQHDCrnRZOD5PjxwgTaw80cYyP8eRmLM2MdsMirrqQ1Cwb04UGtkh3dQ 3Uyh90vIfWNQ7KHFxOrvyziOjdudaySKugVAiueOvSH/1Pu+e3IH6xX62e4RuAyWng3o 9tJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-4229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4229-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n6-20020a634d46000000b005ce08c4bff5si874083pgl.760.2024.02.29.00.00.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 00:00:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-4229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4229-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9586EB25435 for ; Thu, 29 Feb 2024 07:47:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A6304C619; Thu, 29 Feb 2024 07:46:19 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C36A47F73 for ; Thu, 29 Feb 2024 07:46:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709192779; cv=none; b=pwl6HOiWjDg9NqinyywB7PLFEFN9IqrOd1r6rnXqttVMh+NSKNlo6r/SGdgZxHkA4cS6ZHfnjBUfNjcBWLON2J/YL3tMkgHxtC7co7GYzFow0h9UzpMJ/u7vFk5AA18H+BGaZm60z2O3n3z8/vcLKxF5YEZHQG68T2ea3d0j+s0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709192779; c=relaxed/simple; bh=FBbfPqbmV+HelVe/UDyphIgGVCiIRNT5yyoe8/asKDw=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=o/a5//GHbYiENHMEtUvNT0PzftSSLELovy/iRlCw38zN8y8LYCVN1fHClWEWm2CUApP6pr324plurqA1F+WxyiWnvAEllOKFPg39ox4mK91NeHCGTBqwgqC7DWjFnElqyBvhjoYIScgLD9dgvaVlaWchLfyaN7NQ2njQob8mn8g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 41T7k89T11229751, 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.95/5.92) with ESMTPS id 41T7k89T11229751 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Feb 2024 15:46:08 +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_256_GCM_SHA384) id 15.1.2507.17; Thu, 29 Feb 2024 15:46:09 +0800 Received: from [127.0.1.1] (172.21.69.94) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 29 Feb 2024 15:46:08 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 0/8] wifi: rtw89: 8922a: add BT-coexistence materials to initialize 8922A Date: Thu, 29 Feb 2024 15:45:06 +0800 Message-ID: <20240229074514.219276-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) BT-coexistence adds new format of H2C command to use u8 data type as possible as it can to reduce endian transformation, such as le16_to_cpu(). 8922A is first chip to use these new format, so prepare these stuffs before enabling 8922AE. The new format is also needed by newer firmware of other chips, so also prepare for existing chips in advance. First two patches are helpers of MAC to control grant to BT for WiFi. The other patches are to add new introduction format used by newer firmware. This patchset is partial patches related to BT-coexistence, and I will send out remaining five patches by another patchset in coming days. Ching-Te Ku (6): wifi: rtw89: coex: add init_info H2C command format version 7 wifi: rtw89: coex: add BTC ctrl_info version 7 and related logic wifi: rtw89: coex: Reorder H2C command index to align with firmware wifi: rtw89: coex: add return value to ensure H2C command is success or not wifi: rtw89: coex: When Bluetooth not available don't set power/gain wifi: rtw89: coex: Add coexistence policy to decrease WiFi packet CRC-ERR Ping-Ke Shih (2): wifi: rtw89: mac: add coexistence helpers {cfg/get}_plt wifi: rtw89: 8922a: add coexistence helpers of SW grant drivers/net/wireless/realtek/rtw89/coex.c | 393 ++++++++++++------ drivers/net/wireless/realtek/rtw89/coex.h | 20 + drivers/net/wireless/realtek/rtw89/core.h | 90 +++- drivers/net/wireless/realtek/rtw89/debug.c | 9 +- drivers/net/wireless/realtek/rtw89/fw.c | 112 ++++- drivers/net/wireless/realtek/rtw89/fw.h | 45 +- drivers/net/wireless/realtek/rtw89/mac.c | 8 +- drivers/net/wireless/realtek/rtw89/mac.h | 25 +- drivers/net/wireless/realtek/rtw89/mac_be.c | 117 ++++++ drivers/net/wireless/realtek/rtw89/reg.h | 49 +++ drivers/net/wireless/realtek/rtw89/rtw8851b.c | 150 ++++--- drivers/net/wireless/realtek/rtw89/rtw8852a.c | 64 ++- drivers/net/wireless/realtek/rtw89/rtw8852b.c | 64 ++- drivers/net/wireless/realtek/rtw89/rtw8852c.c | 64 ++- drivers/net/wireless/realtek/rtw89/rtw8922a.c | 112 +++++ 15 files changed, 1061 insertions(+), 261 deletions(-) -- 2.25.1