Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10113862rwb; Fri, 25 Nov 2022 00:55:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf5iJHojd4gC6EFcTnWlVHIA4Q0b88LmNab6cIZhATYfOTNXF0Cnk0hMONd9WKD1hY8t+nZR X-Received: by 2002:a17:906:3385:b0:7a2:b352:a0d3 with SMTP id v5-20020a170906338500b007a2b352a0d3mr30505727eja.399.1669366535584; Fri, 25 Nov 2022 00:55:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669366535; cv=none; d=google.com; s=arc-20160816; b=DgiZOWL6dKY9ppTeOUFU45GQj1OqCXKJvtGRfQqQ0VA0xHaDjrACF8fBDPduyBnZO5 p01pYg3hq22kfzijpjdK0TlJCCGcrw4kgeSZT6YLh2+Vb5ezMQofNr17FJgADzmGVEiZ 3PA0ucSxeD7/yintKjFGwuW8oiZ5ucio1qNg1ihTu5ZkXaqga+StzWoc0DyclADGOKD6 r+xpZqoBSrXSPJPXff8ELKd/QHLUT9MlBa64q8HD8aONi2mTF8vR7TaHxSzQKs5OTd3b Q0nDgJcPLgX8LoOgd0W3xh3nYcE0Pnoq3biJXC0KYT9UeawqdWUW2dbpWaEfFkqaUxxR fm4Q== 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=6wHYxR2IW5cPntpdVer0xQm13LYIO8R7Qa7T8d13PDw=; b=ta+VRmUAIcZ0QsuR9AtWotZkr1cFto2go31br5BKtM4OjaT5Wt51syEiTGTjPDZIoG 3PLDxlG+HBHLGuuYJanGTna2PZVpXejUupBoN7W20tDeAmC5J9EpMGZPAjMwn9Tq17Xb GbMqhyb/E+TDHt9twxZ9VVMEGDW4zl9/F46+0NNd0tvzEjbD8QNyc5kdh8SH7yByk9Id V8DI9pHXEO7t5z36uhhwDWmXm3HJJIUja6tgiWxUDLeI4dUMOeCWn8MoMpdNr4ajX4u+ JBusmT4NdbWUXs1pyn67WiCiZEwVaQFQlVq3XYV6TXIG49FXh+4gUUGtv4BWne6/gJhw ABkA== 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 i17-20020a170906265100b0079198b89adbsi2004531ejc.890.2022.11.25.00.55.18; Fri, 25 Nov 2022 00:55:35 -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 S229790AbiKYIv0 convert rfc822-to-8bit (ORCPT + 67 others); Fri, 25 Nov 2022 03:51:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbiKYIv0 (ORCPT ); Fri, 25 Nov 2022 03:51:26 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4232427903; Fri, 25 Nov 2022 00:51:25 -0800 (PST) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 2AP8o2LN1013351, 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.81/5.90) with ESMTPS id 2AP8o2LN1013351 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Fri, 25 Nov 2022 16:50:02 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.9; Fri, 25 Nov 2022 16:50:45 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS01.realtek.com.tw (172.21.6.94) 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:50:45 +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:50:45 +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 06/11] rtw88: iterate over vif/sta list non-atomically Thread-Topic: [PATCH v3 06/11] rtw88: iterate over vif/sta list non-atomically Thread-Index: AQHY/oIuKuRZgKSqcE2cjQtXkytLTa5PVioQ Date: Fri, 25 Nov 2022 08:50:45 +0000 Message-ID: References: <20221122145226.4065843-1-s.hauer@pengutronix.de> <20221122145226.4065843-7-s.hauer@pengutronix.de> In-Reply-To: <20221122145226.4065843-7-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: RTEXMBS01.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-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 06/11] rtw88: iterate over vif/sta list non-atomically > > The driver uses ieee80211_iterate_active_interfaces_atomic() > and ieee80211_iterate_stations_atomic() in several places and does > register accesses in the iterators. This doesn't cope with upcoming > USB support as registers can only be accessed non-atomically. > > Split these into a two stage process: First use the atomic iterator > functions to collect all active interfaces or stations on a list, then > iterate over the list non-atomically and call the iterator on each > entry. > > Signed-off-by: Sascha Hauer > Suggested-by: Pkshih Please correct my full name. The old setting of my mailer is improper. Suggested-by: Ping-Ke Shih Reviewed-by: Ping-Ke Shih