Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2436262rdb; Thu, 21 Sep 2023 20:33:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+4OZ8w9Akar7T8yC+qSiJEjBZhxuXl0z6oVcq4NafgBN4pLBqAatn2faprVg5UaZ+4tK6 X-Received: by 2002:a05:6808:21a4:b0:3a3:37dd:e052 with SMTP id be36-20020a05680821a400b003a337dde052mr8862537oib.5.1695353621177; Thu, 21 Sep 2023 20:33:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695353621; cv=none; d=google.com; s=arc-20160816; b=pGCrIKc9cMeJwvsS8YzlAjPMNnXwSdDOAAStER6EZnlnrIUsFIkWeZgdf0GurpqSRX lgBEJk5Gc5ZKm5vgRTqMEgPHI57exX1sOIg/NIkmmFiUMvXcPdNGbI1Trc8umYfc5zEU Vdo4tqx0WiS4huDEHcJzHU4ZiZ3tUMG3j6tAEFiQ3WhkLTHpMLGnXcxImtcpl7/W4Mc9 /XYPMyfFDp5ZHWaIdOBpj9B2kGKEGilti+BnKfSsMii1xGJQTrsPI58ZIuXCT/FdliM3 ZpMPxTZMF0qENZtpZUB1cwOiHrJU4c2EXp+9gCr3wXVfTAb9WLtC6pEYiFe4jMLjesDc DQIg== 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=y/4WeEF6bN1yrtbIGksz8Co0XtSt537OFniIJItRBBI=; fh=IySK1NIJxFwSBQYGQ2CFWH64uB2XfVAq41B6jTCSVbQ=; b=DSSz5geuAkKbcFJoTpu3igNHHX7V3yXJO4QPpC34bJiYOradkgK8qkQvACxLvPjGgk Oky8f80XmGsMx2rwjgYqDOWFu364Z6UxRuY0WSf6KY7q+QR1MPUODcDGGqF7OB0tNTe+ Bkkfw5488TMOlPfTLWWHpUN1TWLxd+rmvYU7LUgGiqxr/mSRPPqBXFYppzWGU1PEHgZl OjtSEJ7Gt1h1WYfR9jMWafc5JA+9HXFWE1oGGEXsseet1oaDejQXpGVOotwaUU99N5UG 6uNesppTj/+Ym4dXnfaWkNJZ1H0Bs8Hy5+6sVf9eYnDJO4klYu922b05Ra2Y7XEzSQqr II2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="HCsMc/KJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id y5-20020a63ce05000000b00573fc71f6d9si2981760pgf.64.2023.09.21.20.33.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 20:33:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="HCsMc/KJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 710C7838F042; Thu, 21 Sep 2023 12:54:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230059AbjIUTxw (ORCPT + 99 others); Thu, 21 Sep 2023 15:53:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229743AbjIUTxd (ORCPT ); Thu, 21 Sep 2023 15:53:33 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 256CF10250C; Thu, 21 Sep 2023 12:19: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=y/4WeEF6bN1yrtbIGksz8Co0XtSt537OFniIJItRBBI=; b=HCsMc/KJYehWkA0EELVwxmv8nP YmnIs0f3MLpD3Vo6XnE0jEplVdB5aOiYfkVoQ0qkyliMh/l62SO0UwjUMgZiP99EEhqQoxolOv2Pt GFg6Dz5QObtx5A9AbcRLdcGqQ2pFGlkdDBYFG76YoSEtCC0EUhXpisPvn/waj6jX0/9E=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qjPD0-0077lE-4D; Thu, 21 Sep 2023 21:19:30 +0200 Date: Thu, 21 Sep 2023 21:19:30 +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: <61e316c5-e504-4ad1-93a3-f2df5a16b654@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> <4c1d0d38-c459-4722-bead-7660d85f4925@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Thu, 21 Sep 2023 12:54:13 -0700 (PDT) > Yes, as "struct oa_tc6" and its members are not or going to be accessed > in the MAC driver, I will consider this as an opaque structure and > declare it as void *opaque_oa_tc6 in the MAC driver private structure > "struct lan865x_priv" and will pass to the APIs exported from oa_tc6.c lib. > > Is my understanding correct? Yes. If the structure is going to be truly opaque, i suggest having it in the C file, not the H file. Andrew