Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp92118rwb; Thu, 17 Nov 2022 21:15:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf5zen47AQmydA3Hl2E/a3Ibp2l7ZNMekWxlp+863J/q3+AkEup+usDIyYzZY92GGaLDLJ44 X-Received: by 2002:a17:906:901:b0:7ae:23c:3cb4 with SMTP id i1-20020a170906090100b007ae023c3cb4mr4493472ejd.599.1668748537046; Thu, 17 Nov 2022 21:15:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668748537; cv=none; d=google.com; s=arc-20160816; b=sDwKbROujDt5U1YAQuARgL8fgiC/U4UZY9nEXKEAY7WNgs+wWfPe+LC+QjVC8Vx6Ii ELBE3UedFLWSbPFFvhat+UMOMGqL8Jur6+Q0KTOBMAUL8GrDCrsvns/avFEEHOZiDOJ8 nBjqsGNCnvOPbTIQSaWrLQYDGEIidlnzI0DhQ1DLW57Td2mpej4gIIQf+UWk4lFenJkR kGG8RPNCArZcY0UJ8l9ixIRILaUxnQ73rVzvhSdn+L2kHWU9FMOVWc+DqELR192UnQIc E1WsQWClT7zfB5AugUoWBXbrKySMzbCZRK8nDYm/+KMYA6ymaxxnA9Pd3I8zjGC14d/4 Ri7Q== 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=17LuVXW8SoHgeQx5569xK2UyCitqewz47tZdx7gL1M8=; b=zpzlQ+kIU0k3sGisumrUYnRF0kqw0Bm6mlgMyNrTJ0np/zFu3FjmtvjsQiAo24VUnX IHyji9NxL02h6S6ioCUvHoHyK48zoaBeF/+d5cHOGpO5NM/13X+vwLJIC9eKgX0A1X4u Sy0RNDOrWUxHJ5dGDJIcEveL58+1Zdw8pSiu2QbO/7e0boMAnPUHM2BfZF3pGEaspZ8b +0VkpCsVEqvTOyRf8Xh2honsm6rioGPUZuCANPyxBvrBaIKnAy7SmAFjm/WRhKeSYe03 /h2CGuIy4Dhx3NxCGflfhuCSJ2rOLyPRhSaTj8QSDMVEg7/86/wjBdtgLYCb3x7sSOS7 BTpg== 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 nb17-20020a1709071c9100b007a858ead52dsi2541144ejc.732.2022.11.17.21.14.59; Thu, 17 Nov 2022 21:15:37 -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 S235089AbiKRFLn (ORCPT + 67 others); Fri, 18 Nov 2022 00:11:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbiKRFLm (ORCPT ); Fri, 18 Nov 2022 00:11:42 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5F24C6BDDA for ; Thu, 17 Nov 2022 21:11:41 -0800 (PST) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 2AI5AqcrE003094, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 2AI5AqcrE003094 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Fri, 18 Nov 2022 13:10:52 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Fri, 18 Nov 2022 13:11:33 +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, 18 Nov 2022 13:11:33 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 0/6] wifi: rtw89: preparation of MCC Date: Fri, 18 Nov 2022 13:10:36 +0800 Message-ID: <20221118051042.29968-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: 11/18/2022 04:56: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?Q2xlYW4sIGJhc2VzOiAyMDIyLzExLzE3IKRVpMggMTA6MDA6MDA=?= X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-ServerInfo: RTEXH36505.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 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 This patchset is preparation of MCC, which needs many handshakes between driver and firmware, so rtw89_wait_for_cond() and rtw89_complete_cond() are introduced to assist this work. Based on above APIs, implement H2C and C2H handlers to interactive with firmware, and callers of H2C will be added by another patchset. Another basic preparation is to link rtw89_vif and channel context, but we still use first entry as default currently, so adjust index of instance of chandef when remove_chanctx(). Zong-Zhe Yang (6): wifi: rtw89: rfk: rename rtw89_mcc_info to rtw89_rfk_mcc_info wifi: rtw89: check if atomic before queuing c2h wifi: rtw89: introduce helpers to wait/complete on condition wifi: rtw89: mac: process MCC related C2H wifi: rtw89: fw: implement MCC related H2C wifi: rtw89: link rtw89_vif and chanctx stuffs drivers/net/wireless/realtek/rtw89/chan.c | 40 +- drivers/net/wireless/realtek/rtw89/core.c | 37 ++ drivers/net/wireless/realtek/rtw89/core.h | 60 ++- drivers/net/wireless/realtek/rtw89/fw.c | 386 ++++++++++++++- drivers/net/wireless/realtek/rtw89/fw.h | 449 +++++++++++++++++- drivers/net/wireless/realtek/rtw89/mac.c | 181 +++++++ drivers/net/wireless/realtek/rtw89/mac.h | 35 ++ drivers/net/wireless/realtek/rtw89/mac80211.c | 1 + drivers/net/wireless/realtek/rtw89/rtw8852c.c | 4 +- .../net/wireless/realtek/rtw89/rtw8852c_rfk.c | 20 +- 10 files changed, 1178 insertions(+), 35 deletions(-) -- 2.25.1