Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14845135rwb; Mon, 28 Nov 2022 05:38:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf4IY3V3IIqDD3tKlPwlnuFG5wNuNI+WGes/OPptAUgppMCiFqTKCsPK+wSbzFnaJW/+Jt/A X-Received: by 2002:a17:907:80cd:b0:7bb:35b4:777d with SMTP id io13-20020a17090780cd00b007bb35b4777dmr17520188ejc.302.1669642679684; Mon, 28 Nov 2022 05:37:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669642679; cv=none; d=google.com; s=arc-20160816; b=jBLrhF+HLssGUSM+9K/czVaGLdZb2h7OgBijAM4vKaPGayr0mR48k353hYuxvKyrCu ZZfSM7w9KfqglUBEHdgsm8h2+LB2sM2QUWnVErZvaXjQeIfudGI3OjIn7+ILpHnsidMq m3sidyLbiMIHI6tRPGZdC8D/yPl1qvaU2G+KKoL/74T8f4o2DZpSGoP8gWZqkGYSjKv6 HuPIdbi7mBwDuVMZvM9QIfg/fb1p3tkI2LQ4o85Yw2RJ5gdhfA2+TI1c97iFqSk/6zlS ScfSwQIdZljbi48QSXBgCKueOC4aIUNDFXEP862nGt6RRgygVqFCRp2iGRam6zmTLb7j FMcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=JxqHR+ptB7VYFAL5IaEhFgnVy51+OV6KbpuXtsUCGv8=; b=OeZ/jrIhIWdrnpNceStqjuxE4HrzJLH74FuoDZftLkmaUUWA0gcHYbhZh6twt5c4hr utUClE37X6Nr2SNrB370naJJcfi+rSbvv/YvFZTZl2uq8EKCJX9nQhdJM+KIvNUmxtIn l71v01UrBAf9mUc+XD1PbsOOTjVVCkCAiU76UNh0kSJFVhzE83lGyRLJ2ZnwXlBGzY/y qe/0TrF8caKmBQGIPq4hbIcyepq8jWaFd8n5Qx0fHO9YabwN2GQh2rxdsQeo5FD40LcA D4YPBoqb8LJZvvnBGjfCeCfZUtTnkh7cwXXnSqais8RhAxFNjpAlNh5pkHUhAmUTAwJ8 9P5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Htkc59An; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a056402032300b004642b0f7b2fsi8950597edw.417.2022.11.28.05.37.41; Mon, 28 Nov 2022 05:37:59 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Htkc59An; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230199AbiK1NbT (ORCPT + 67 others); Mon, 28 Nov 2022 08:31:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232016AbiK1Nap (ORCPT ); Mon, 28 Nov 2022 08:30:45 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B41781DDC2 for ; Mon, 28 Nov 2022 05:30:44 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 2BFAFCE0E5F for ; Mon, 28 Nov 2022 13:30:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EC04C433D6; Mon, 28 Nov 2022 13:30:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669642241; bh=cFLTvkUZGozT8K94l2UKTO6K59u2aEegCDKf+0pnPn0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Htkc59AnsJ2JU4o+amGjltr9Be0EhWSf+TZYJmearP6kfRDvT27OSga6VESSipAxG 3iwS72p3F9Qx2xCkL6oF3V7R06HkQ59khGer+G3ndw7hfsA9+WQEccxsGNSUG1vasv Z8l37RoAVgWkjJraPK8OVY7VK+KkIpo4P40C3jnP6w5qGo70BvFyXxb02ZSo6pV0rM OAEAFeoA2558St1w7Nih3zm5Js7WF7W8KTJ+fypz6BTgYSGnAWEV+YtY0TWZ8zIWe0 +j7YN+PM/RBheJBRlwx9kSXjSAKnsjFoKxiKqfVZAWQBRlsQudWkOxRg+E0dZX4sg1 ZVDyUvXdr9T+Q== From: Kalle Valo To: Ping-Ke Shih Cc: , Subject: Re: [PATCH 4/6] wifi: rtw89: mac: process MCC related C2H References: <20221118051042.29968-1-pkshih@realtek.com> <20221118051042.29968-5-pkshih@realtek.com> Date: Mon, 28 Nov 2022 15:30:38 +0200 In-Reply-To: <20221118051042.29968-5-pkshih@realtek.com> (Ping-Ke Shih's message of "Fri, 18 Nov 2022 13:10:40 +0800") Message-ID: <87o7sr5hq9.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Ping-Ke Shih writes: > From: Zong-Zhe Yang > > Process C2H(s) related to MCC (multi-channel concurrency). These handling, > which either call rtw89_complete_cond() or show message in debug mode, can > be considered atomic/lock-free. So, they should be safe to be processed > directly after C2H pre-check in previous patch. > > Signed-off-by: Zong-Zhe Yang > Signed-off-by: Ping-Ke Shih [...] > +static > +void (* const rtw89_mac_c2h_mcc_handler[])(struct rtw89_dev *rtwdev, > + struct sk_buff *c2h, u32 len) = { > + [RTW89_MAC_C2H_FUNC_MCC_RCV_ACK] = rtw89_mac_c2h_mcc_rcv_ack, > + [RTW89_MAC_C2H_FUNC_MCC_REQ_ACK] = rtw89_mac_c2h_mcc_req_ack, > + [RTW89_MAC_C2H_FUNC_MCC_TSF_RPT] = rtw89_mac_c2h_mcc_tsf_rpt, > + [RTW89_MAC_C2H_FUNC_MCC_STATUS_RPT] = rtw89_mac_c2h_mcc_status_rpt, > +}; static const? -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches