Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp30094lfe; Fri, 15 Apr 2022 17:58:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbJmGoiqKvagiWYhJqgTOSdfN7UdWYUyJ7J7ph867sffILCsFCBu2vXc/6Fzcwf1hu1ndZ X-Received: by 2002:a17:90b:812:b0:1cb:afe4:e418 with SMTP id bk18-20020a17090b081200b001cbafe4e418mr1515282pjb.53.1650070704153; Fri, 15 Apr 2022 17:58:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650070704; cv=none; d=google.com; s=arc-20160816; b=rNU7M3r6TT9nwEgr1IPv0s9itHsE8W5FEK4fRquLN5YSZtCCo1ymB2Ojx2Z97Bl6JQ PO6mZVLZQFElAmUYfeNI4/DgXqEH2dCAwzJsQpFgsE2bAxXJTSwHDE65ZCMPUNo0/Pih EJmJ7kgCERtEO3AyYAcrkFYCGWmf/soQyO8B0uitDkZASfCVXfRQSyKiUqmO+8GZY7eE 41dZ0iEFCtMdxwikPU0O7RwtS6XKhhdFieBbNwKUiqPI8dDl6+oMWpvdabmww8XE2h1K 7XjbD3usnLDkkB4OIfFvCIil7NQW6SoNEu61gnSKTetDfMFDkq5R0lRspwElQi5yBkFc ALsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PjAOnK4TaThM2zy9QVRf0RiQ0dd/kY5ZjwiE2UMge0w=; b=DsdHbX1mG0eK+DLEUIsI5VWSn9s7d1xNu0/54fMv5KyU1Q0n3apOjs5/f5wL+Uza5n wgsUWFSObTgBxKMNNuUalnLHhVPDvN0pzCh/N3dON6IHPkz5AK8Qsm1UinTBTeZdrkQj XxQ+lLbfYPOzEjbLCRCl0flyvKbfTrx4tIm0/bjXHs2aqupSZ8WMY4vxyXBmgBA9ZZ8o jamih8yuYpbTObkm3eaFUujJI6hC6NqYrSe1eN9FQrAbKX2Q5Pc8yQGLZWJjWHGh40ZT QCEjRU+Fy+v1d9/8nwP031leAgRloqW4oiG6HuiRMTmLkp59MlvTxV0isI68lr48XKfn wcCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZCBW3amw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i15-20020a6561af000000b0038207e00911si2776593pgv.540.2022.04.15.17.58.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:58:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZCBW3amw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E5208546AA; Fri, 15 Apr 2022 17:44:00 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351312AbiDOMod (ORCPT + 99 others); Fri, 15 Apr 2022 08:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354494AbiDOMny (ORCPT ); Fri, 15 Apr 2022 08:43:54 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D98B2253; Fri, 15 Apr 2022 05:41:25 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 21so9848059edv.1; Fri, 15 Apr 2022 05:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=PjAOnK4TaThM2zy9QVRf0RiQ0dd/kY5ZjwiE2UMge0w=; b=ZCBW3amw8qVo6miVAAhkjAXu/tGK59gJc9d8egCRoPu4Sd0hFyT0C+jwgcaB5brIhH e3m5jnX7gjDd7EHc1iTYxSigi/Sybz6qr1NMAfAL8T+68QljsXBr5DKYxXPZKOla4V/g rc3bEcnmrl1MSEEjxfq5/7z2ZkmxfWsNq6vo6YO78aULLZx1n2g7wcLYsmWPi3XfFsGF SJf9dzkmsUxiaNDzKVsjmyxCtrd6XveG7HvSjk66K6YIV0iEGElRh/osjgP2eMxYTe2P XdFcbxrCT5U/hHJDXL5v9DxIFI3iG6/zdSJjtkqtOWr85hZOH2M6HhFAQrL9V6c7KVPZ WCtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=PjAOnK4TaThM2zy9QVRf0RiQ0dd/kY5ZjwiE2UMge0w=; b=kkZkAkxmVD71aFxrYfhmOF5Crl4dSvwUu2w3zD6MkEucWSG+pb2vDRik2Hyii6ELua gDGiwb+XadXhG9UAGpc0wRfEQzh+Py1U+OyaW3rzQUysRbJsa2iidReUlLT+w9ucYXXR y8lCsit4dVnNgK/rqbnisZ2oXiSfpOTq90y6O9Zib/+XT5p1xMr7F6KWXA28H5/4p/bS 7wgADukzCliARnwfpKLSExx05sAUFu22GunWalFxDjQM4ssUO2LuUlhbHVeso2AelNgP DbHe3t/aj/PhCk6grETT6Y/He3XXCywiVI/2jSu0RnoUQ/ZH0lFInIaUXdRWj0+K8wmO yP9A== X-Gm-Message-State: AOAM533Ke+7v5bzW2Ezq4SaElnm8wje0FJEr6FavzG4rI+6GSxgZHEzP x/r1ZlwVm5iEDC3+t01p9Ac= X-Received: by 2002:a05:6402:27c7:b0:41b:51ca:f542 with SMTP id c7-20020a05640227c700b0041b51caf542mr8170865ede.149.1650026484337; Fri, 15 Apr 2022 05:41:24 -0700 (PDT) Received: from skbuf ([188.26.57.45]) by smtp.gmail.com with ESMTPSA id b5-20020a17090630c500b006e8044fa76bsm1693634ejb.143.2022.04.15.05.41.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 05:41:23 -0700 (PDT) Date: Fri, 15 Apr 2022 15:41:21 +0300 From: Vladimir Oltean To: =?utf-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= Cc: Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , Magnus Damm , Heiner Kallweit , Russell King , Thomas Petazzoni , Herve Codina , =?utf-8?Q?Miqu=C3=A8l?= Raynal , Milan Stevanovic , Jimmy Lalande , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org, Jean-Pierre Geslin , Phil Edworthy Subject: Re: [PATCH net-next 06/12] net: dsa: rzn1-a5psw: add Renesas RZ/N1 advanced 5 port switch driver Message-ID: <20220415124121.pls4bhfwv3azpbmf@skbuf> References: <20220414122250.158113-1-clement.leger@bootlin.com> <20220414122250.158113-7-clement.leger@bootlin.com> <20220414144709.tpxiiaiy2hu4n7fd@skbuf> <20220415113453.1a076746@fixe.home> <20220415105503.ztl4zhoyua2qzelt@skbuf> <20220415142857.525ccd2d@fixe.home> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220415142857.525ccd2d@fixe.home> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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-kernel@vger.kernel.org On Fri, Apr 15, 2022 at 02:28:57PM +0200, Cl?ment L?ger wrote: > > Most things as seen by a DSA switch driver are implicitly serialized by > > the rtnl_mutex anyway. > > Is there a list of the functions that are protected by the RTNL lock > without having to deep dive in the whole stacks ? That would be really > useful to remove useless locking from my driver. But I guess I'll have > to look at other drivers to see that. No, there isn't, but in Documentation/networking/dsa/dsa.rst we do have a list of dsa_switch_ops functions which used to be comprehensive (but now needs to be updated again due to development that happened in the meantime). I suppose that if you do a thorough job of documenting the synchronization rules, you could add that information to this file. This would be similar to how we have the "struct net_device synchronization rules" section in Documentation/networking/netdevices.rst.