Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp328903rwb; Mon, 28 Nov 2022 21:57:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf53jHf9NCEwsquyeipqaM1nqs/nILL6CFrAAvVe8xDZ29HKmnU0oonfPGjsM5QEnZgE7uko X-Received: by 2002:a17:906:3da2:b0:7ac:a2b7:6c96 with SMTP id y2-20020a1709063da200b007aca2b76c96mr44881030ejh.412.1669701474257; Mon, 28 Nov 2022 21:57:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669701474; cv=none; d=google.com; s=arc-20160816; b=D9Ynmx+/FPmuTwnJ1Bci6C8gnfITDHXlqo1t/AUvx75PBh+gkjgmJovrw1HDhbbJqr X/M8WR73YPSenVq0Ef3FHnkukFP+bbXtfS7UsAHxQ6Uu6FAPTbcqr/P/D/Ed+W5yfNVt tw6JvZHOYT5rkD8IJJje8BbOTa0EBd0KQIcFzRHSd6fwHJ1tV+blDbf1yEwCaAZT+4zE WDri2lWshetQJIR3wIqDZBgAwSlcChnva43YeP06y3Alva415FfO/PEu1z0JEGmqvKyv F31TsiaJt984TSXMwNwwTUlVE2bgVc3rmGhFl3lMZrth/iM3cJI/vg+Ekw6tnrRrfl4p /CRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:dkim-signature; bh=XfR8HVQ3HH9+obFqdMx/d8Hz4g8jtkWsx4lRerj8Rmo=; b=O6kZQrnAgtz9WzYf/OpCw+dNGKLIUl5wYnnQHQf6e0BQW9UsLUuJhUrm6F54TEnkUy A07KIe2pr6orZIeDyiFpPI1ptL3z1GKv7qhe6H+zMKQw4Uz/U4hFE6p1chTVfoZh1Lry nSDmPUGOxc87LK1PNk/qFG6gYmoHUqO6qtomO13ezy4VCAa6OY0+vL/AuxZ8ysLo2j4f 1sU5VnFTOqfdL5oxz9IsXmHnHsoZ6AS8adh8S7gO4Dy+DKxlx16E+mmRxqWg0mzwnb0Q UDvWzqO1F6zqQc/dcOywaktgXS7Z7rQ0FFnWBwdlytXIA2RPWwmI1dqGy/IWgElbl8hj gbFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D+b5m4aa; 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 hs1-20020a1709073e8100b007ac60b83407si11786560ejc.725.2022.11.28.21.57.35; Mon, 28 Nov 2022 21:57:54 -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=D+b5m4aa; 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 S235512AbiK2FfU (ORCPT + 67 others); Tue, 29 Nov 2022 00:35:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235244AbiK2FfT (ORCPT ); Tue, 29 Nov 2022 00:35:19 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC8F827CE1 for ; Mon, 28 Nov 2022 21:35:16 -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 ams.source.kernel.org (Postfix) with ESMTPS id 7A034B80EAC for ; Tue, 29 Nov 2022 05:35:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54D5AC433C1; Tue, 29 Nov 2022 05:35:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669700114; bh=o4s4M3GENouVY2otpcgIvA0Qfh+MGpfYdT+ZZJ7I/SQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=D+b5m4aaY4PRctY+wYuUvUroHeeLCDmA/mjG0yju8PAqBabK/oGmdrAkHOHdQf6Bz b5MzC1VsUuvW2ZaFXEi8qki9uMmQyjJkxTbCbXztx6st2iEJQ5Cc0AiYc60sHhSBl9 dtsDqXJbxmtj4A8a7+23Vk8HaMPAEA/27Jq5hEbn7L4t+kapTxuw9HiQDKLphkX+6E o/Ir8KwBQT3nhGIQWtKyQHbyS0BzJQwcT9IvvfOkKIs2uz6BqHB53uTsQUsFowCHNR OInWONjS2XGpkQD/LbzV0+gaIiljBiX+s3L0OdvpNBKsASK8aS9bExmqBw/8TlyI9u T5ye+6b6I72nw== From: Kalle Valo To: Ping-Ke Shih Cc: Kevin Yang , "linux-wireless\@vger.kernel.org" Subject: Re: [PATCH 4/6] wifi: rtw89: mac: process MCC related C2H In-Reply-To: <6444fb9949e14656b3ccf0adb6babb63@realtek.com> (Ping-Ke Shih's message of "Tue, 29 Nov 2022 00:22:40 +0000") References: <20221118051042.29968-1-pkshih@realtek.com> <20221118051042.29968-5-pkshih@realtek.com> <87o7sr5hq9.fsf@kernel.org> <6444fb9949e14656b3ccf0adb6babb63@realtek.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Tue, 29 Nov 2022 07:35:10 +0200 Message-ID: <8735a25nn5.fsf@kernel.org> 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: >> -----Original Message----- >> From: Kalle Valo >> Sent: Monday, November 28, 2022 9:31 PM >> To: Ping-Ke Shih >> Cc: Kevin Yang ; linux-wireless@vger.kernel.org >> Subject: Re: [PATCH 4/6] wifi: rtw89: mac: process MCC related C2H >> >> 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? >> > > These are function pointers, so const is before instance name, > i.e. '... const rtw89_mac_c2h_mcc_handler ..' Ah indeed, missed that. Thanks. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches