Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp962062rdb; Tue, 19 Sep 2023 16:09:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFYv04GfxRb38Y7YHCz8OwkQtkvV7Lzd/9IZ7Gu5neSHucKF8MtkrPubwH/IrWaPoPm6ocT X-Received: by 2002:a05:6a00:2e1d:b0:68e:265d:c2b5 with SMTP id fc29-20020a056a002e1d00b0068e265dc2b5mr1263823pfb.29.1695164943655; Tue, 19 Sep 2023 16:09:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695164943; cv=none; d=google.com; s=arc-20160816; b=POOnSVGDarIdjghR/MaHgneRL9fdHayz/Sz261QNZ5PfOJpwfUhZYaRyMt0DxKuHFx lErIlcriWbWACU1L1poMociOoVIOs3pFbNxCEvZl2XeUw+3+QrzK/4fS6dQ05FtBoW+s hUg/prwjMKlwwryNl1H+Lzpsnzeq2GfS1X46O6kwzAAToojvea/8PzKKdJPEAl0+9ElX 4pw+I3M5G8FZLWvStr+moMKzeXVbcASIC5a94Ub4Hkt9r0ny7lELgYZrkCFqrPq7Loq0 pZyx3ygnz8zbZWLt61R0wA9L4xF5HHsS2BLSmOHzq9h8oFQYMeu+Eo7D9JDdy+kKGyh+ 4uJA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6pJg57Rcm0bmG3CDzyP2i9I6PKCyoCY99pTc1UrpBC8=; fh=IySK1NIJxFwSBQYGQ2CFWH64uB2XfVAq41B6jTCSVbQ=; b=sVIgLr1FP2t1R4uVySTtLZt8pEkSPfzRNvFpMPEKftz2VPsstCaOjXupwRu3RuEHRl mzgs3epZx1NuwctLuKCLTeTgfBAMilD5FiGlngWdyHU2ExCZ4OxaGoJFMF7siWj//IHq NuL6aBHhZ/Iw788hC5M3dZlvaHNk3ODQUCj2+/QUh6KZf2X+GUiKg7Ee3n764aeJwvlF ZZCUFUKFQe9P1zPqMQ2uZaeD8hGsSeQSguRAuRSojAEwrNYQAeC9QzzfqNhk6OGHWmn9 +1umEHWlUgfQqAsPBvWXnYHcPGHpoQPLdh5eqZByM21u4w92+/TUhBjwWCG7t+dSy69H xzBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=bZh8QSHy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id l27-20020a63ba5b000000b0057808ac73f0si9466660pgu.269.2023.09.19.16.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 16:09:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=bZh8QSHy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2243980BC518; Tue, 19 Sep 2023 05:59:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232316AbjISM64 (ORCPT + 99 others); Tue, 19 Sep 2023 08:58:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232274AbjISM6p (ORCPT ); Tue, 19 Sep 2023 08:58:45 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9413F3; Tue, 19 Sep 2023 05:58:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=6pJg57Rcm0bmG3CDzyP2i9I6PKCyoCY99pTc1UrpBC8=; b=bZh8QSHyXJjGveMP/Dkg4hr+hR KOM1GS26Sr/9iplc+88NCDHXRHqKbCRO6pbQPLx2EGjjgycmX8CDMoo7Zf9wZ1DDABIu2TeGYOByQ f0JEpxvknIcw6dPbKvpLgPdC0W7+fSGaOZU9X/Jwu/c55ONcBRBSdWyqOb9TciWeZTC8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qiaJB-006uaR-El; Tue, 19 Sep 2023 14:58:29 +0200 Date: Tue, 19 Sep 2023 14:58:29 +0200 From: Andrew Lunn To: Parthiban.Veerasooran@microchip.com Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, corbet@lwn.net, Steen.Hegelund@microchip.com, rdunlap@infradead.org, horms@kernel.org, casper.casan@gmail.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Horatiu.Vultur@microchip.com, Woojung.Huh@microchip.com, Nicolas.Ferre@microchip.com, UNGLinuxDriver@microchip.com, Thorsten.Kummermehr@microchip.com Subject: Re: [RFC PATCH net-next 1/6] net: ethernet: implement OPEN Alliance control transaction interface Message-ID: <4c1d0d38-c459-4722-bead-7660d85f4925@lunn.ch> References: <20230908142919.14849-1-Parthiban.Veerasooran@microchip.com> <20230908142919.14849-2-Parthiban.Veerasooran@microchip.com> <8d53ca8d-bcf6-4673-a8ff-b621d700576e@lunn.ch> <9615b403-52c1-f24f-382f-8eea3ddfcf04@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9615b403-52c1-f24f-382f-8eea3ddfcf04@microchip.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 19 Sep 2023 05:59:08 -0700 (PDT) On Tue, Sep 19, 2023 at 11:13:13AM +0000, Parthiban.Veerasooran@microchip.com wrote: > Hi Andrew, > > On 13/09/23 7:46 am, Andrew Lunn wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > >> +struct oa_tc6 { > >> + struct spi_device *spi; > >> + bool ctrl_prot; > >> +}; > > > > Should this be considered an opaque structure which the MAC driver > > should not access the members? Opaque vs not opaque is an important design decision. If the MAC driver is allowed to directly access this structure, you should document the locking concept. If the MAC is not supposed to access it directly, only uses getters/setters, that also needs documenting, and maybe even make it a void * in the MAC driver. Andrew