Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10089469rwb; Fri, 25 Nov 2022 00:31:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf6vjuL9Gp8PinKX4F2/33Ei0HZmxMR2wjcFxwm+aev/L17s0v0Qi2owHM+LW3lePsXT9wBI X-Received: by 2002:aa7:d7cc:0:b0:45b:4a4b:478c with SMTP id e12-20020aa7d7cc000000b0045b4a4b478cmr16190926eds.317.1669365068757; Fri, 25 Nov 2022 00:31:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669365068; cv=none; d=google.com; s=arc-20160816; b=FVW6iSlMGjjjd408cenYT4nNA0PxO48lru9pdTl1qAhGmEfQzw2IIEvsoyj+HE2p0Y Pjei+JoRhjfS0u3QwqgMsd8A7YTrEsotIH7AoteK3pGkOLkwHue1DAgFHP/mEycu3Wke wr1+Ufn+Dsf0ze55Wwh9OhT5ejouUXXimv6vLVTEbnttckywJFjHz3/dwbSnWOl7wMo2 jTWR6m4iep/AtpwcYmohvK7Z7LSShmoqFJWIaixMjCA6hCt1UQL/9XeY7tIeLWnKNXBt buiR90Vb/fqg91kxt2yniQ6fSpmJ1Z9mVmKnThpEtNZzP4CFGnwybHYFTG9Mr7xuLeUN KY1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=dDGy6l06j9GGQC7M22eFL5CXgXKYmR4cgtU2/qk8ggg=; b=dvlO/G7iMsacypIpMKbde8B6D6IdCYw/tO0TF+mcUxLdQNhQqxH0S0MWnSvOZYxUTM P3QOStgoU7U9tXqt4a1XkkFpXtAukXdTrv/zLDY0O08seu8BXsFYLMoirW9Pso1cM2KV KOGrriJ1o054dLyTfTSGjdfxTfk5hmOsxMTu2B/cHWQqaZu7B2j1YwgqV/bQhy9wsNZg pNQLCJImqyi7fkFKRRzaXdGbY46BHIM5DmQ2PwD6nzIa5ejYIXxi3NIvvV/Hbu+LKrPP 9+udw4DjEZc6zM9f0POxQC3Cj/YbEiJRdQHpo/wKJhPvSUtqPQ0M52ZFsOK0JyHSq4CO f3Dw== 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 ht10-20020a170907608a00b007ada03062e9si3277007ejc.415.2022.11.25.00.30.51; Fri, 25 Nov 2022 00:31:08 -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 S229853AbiKYIaI convert rfc822-to-8bit (ORCPT + 67 others); Fri, 25 Nov 2022 03:30:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbiKYIaG (ORCPT ); Fri, 25 Nov 2022 03:30:06 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6F30731210; Fri, 25 Nov 2022 00:30:05 -0800 (PST) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 2AP8StpE6006039, 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 2AP8StpE6006039 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Fri, 25 Nov 2022 16:28:55 +0800 Received: from RTEXMBS03.realtek.com.tw (172.21.6.96) 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, 25 Nov 2022 16:29:38 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS03.realtek.com.tw (172.21.6.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 25 Nov 2022 16:29:38 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::15b5:fc4b:72f3:424b]) by RTEXMBS04.realtek.com.tw ([fe80::15b5:fc4b:72f3:424b%5]) with mapi id 15.01.2375.007; Fri, 25 Nov 2022 16:29:38 +0800 From: Ping-Ke Shih To: Sascha Hauer , "linux-wireless@vger.kernel.org" CC: Neo Jou , Hans Ulli Kroll , Yan-Hsuan Chuang , Kalle Valo , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Martin Blumenstingl" , "kernel@pengutronix.de" , Johannes Berg , Alexander Hochbaum , Da Xue , "Bernie Huang" , Viktor Petrenko Subject: RE: [PATCH v3 03/11] rtw88: Drop rf_lock Thread-Topic: [PATCH v3 03/11] rtw88: Drop rf_lock Thread-Index: AQHY/oIygBK3Wh67DEaTX45BCElsma5PUv2Q Date: Fri, 25 Nov 2022 08:29:38 +0000 Message-ID: <71f8444cb3bf4859843339614f61a6e8@realtek.com> References: <20221122145226.4065843-1-s.hauer@pengutronix.de> <20221122145226.4065843-4-s.hauer@pengutronix.de> In-Reply-To: <20221122145226.4065843-4-s.hauer@pengutronix.de> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXMBS03.realtek.com.tw, 9 x-kse-attachmentfiltering-interceptor-info: no applicable attachment filtering rules found x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: =?us-ascii?Q?Clean,_bases:_2022/11/25_=3F=3F_06:00:00?= x-kse-bulkmessagesfiltering-scan-result: protection disabled Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 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 > -----Original Message----- > From: Sascha Hauer > Sent: Tuesday, November 22, 2022 10:52 PM > To: linux-wireless@vger.kernel.org > Cc: Neo Jou ; Hans Ulli Kroll ; Ping-Ke Shih ; > Yan-Hsuan Chuang ; Kalle Valo ; netdev@vger.kernel.org; > linux-kernel@vger.kernel.org; Martin Blumenstingl ; > kernel@pengutronix.de; Johannes Berg ; Alexander Hochbaum ; > Da Xue ; Bernie Huang ; Viktor Petrenko ; > Sascha Hauer > Subject: [PATCH v3 03/11] rtw88: Drop rf_lock > > The rtwdev->rf_lock spinlock protects the rf register accesses in > rtw_read_rf() and rtw_write_rf(). Most callers of these functions hold > rtwdev->mutex already with the exception of the callsites in the debugfs > code. The debugfs code doesn't justify an extra lock, so acquire the mutex > there as well before calling rf register accessors and drop the now > unnecessary spinlock. > > Signed-off-by: Sascha Hauer Reviewed-by: Ping-Ke Shih [...]