Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3028706rdb; Tue, 12 Sep 2023 22:35:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFcL80knG9QVRFnjgL2pxN/QS7V4uj6R/OtS2DJ9CXlSPnxXq+9ASqxZ1pFRwk12dJozXLt X-Received: by 2002:a05:6358:281e:b0:140:f55a:ad41 with SMTP id k30-20020a056358281e00b00140f55aad41mr1618753rwb.22.1694583348676; Tue, 12 Sep 2023 22:35:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694583348; cv=none; d=google.com; s=arc-20160816; b=jdK6u0CHFkWNoMXladj2hf4oxX2LkM0l49YGpnbzUUX5P0kXLSfCNMPjk2prasj/Rh mX95B4L3QXK6z6D2MSSQRayUNoju+l95HF8Oe/Il7A6vUx9ECoTQEh3VrjeKvSmOxZoF JA9Ht9GKTTFNUkzxiDM4782S1U9Th9ZNifs4JZmYCLTwts8KLncuW9YyMGzf5dECxzUk Cst7RZygVCNpq7oMUMH/IwPAZSuaLtjMmu1EWADuUCKu22K671Ntwr2iz6tIHIrvKn8f uT063Zq/atu1XqFY6rrj8SQgPKkDZ4E8kwr5H5MXt+qOrIg6Y1lsXlOhT8H5HVZZmjn3 12KA== 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=qJBQpBNYYlkyqxjelwZuKANH81OCTF0GID3/9TLiuoA=; fh=IySK1NIJxFwSBQYGQ2CFWH64uB2XfVAq41B6jTCSVbQ=; b=bwimm3nED/NEv5JhQ6TZwtiMcgdr1OBYq31m1HvfxCB3fOM6uj1R3qozMvK+h89H9P k22413IHZfgqVDa55bvP5pq0CB5iGcxUB6jonmUjMZExuXDY61Pq+PqIWdR4C5zBIF0R AVY9MUziS5MqzPdTgSwlU88oUIqLMsnWb9HFP17Uitzsiyq8pGJ9I1gb4mAV3pFwqW9U 65qznvTnnPsZmGs1wNTuiSlLGCHGGLefZ+F/W1iN20pIeEIMBWuLxhKwMBr1mV5KzSZw sNWilOW/22bVDoHaZiHhxM6FNMosBpU6xxi5s7+7C2wxWBdcfxXsre2Kxs6/rtjEWXoI jb3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=c+vvtVla; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id s16-20020a056a00195000b0068fcff1dc3asi4114687pfk.339.2023.09.12.22.35.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 22:35:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=c+vvtVla; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 5E2D581C0CB3; Tue, 12 Sep 2023 18:33:10 -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 S238038AbjIMBdF (ORCPT + 99 others); Tue, 12 Sep 2023 21:33:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230113AbjIMBdD (ORCPT ); Tue, 12 Sep 2023 21:33:03 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9D7A10E6; Tue, 12 Sep 2023 18:32:59 -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=qJBQpBNYYlkyqxjelwZuKANH81OCTF0GID3/9TLiuoA=; b=c+vvtVlalT0CtfoSTtdGkB/6UX 0vaEIh3WXqfy+MkjaZaczVeqG94U2ZqHfGvwJQdGjY4SMFi+mg/+zn7SaEWJrQ0bbpR+zvSIoq+Cb l+Ik+/TZWS07EvaM6iOsaD9eS0dW7FtF8D/wqURwPHbK0STlMYosg5AJttfo8hlls9OM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qgEkK-006Grg-3h; Wed, 13 Sep 2023 03:32:48 +0200 Date: Wed, 13 Sep 2023 03:32:48 +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: <2021acc6-bcf6-4dba-b7ce-ca1b3ca86088@lunn.ch> References: <20230908142919.14849-1-Parthiban.Veerasooran@microchip.com> <20230908142919.14849-2-Parthiban.Veerasooran@microchip.com> <74a6cd9c-fb30-46eb-a50f-861d9ff5bf37@lunn.ch> <6ecc8364-2bd7-a134-f334-2aff31f44498@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6ecc8364-2bd7-a134-f334-2aff31f44498@microchip.com> 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]); Tue, 12 Sep 2023 18:33:10 -0700 (PDT) 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 fry.vger.email > If I understand you correctly, this framework has to include the module > initialization as well using the below APIs and has to be compiled as a > loadable module so that other vendors module can make use of this, isn't it? > > module_init(oa_tc6_init); > module_exit(oa_tc6_exit); You should not need these, unless there is actions which need to be taken when the module is loaded. If there are no actions, it is purely a library, don't have them. The module dependency tracking code will see that the MAC driver modules has dependencies on symbols in this library module, and will load it first. The MAC driver is then loaded, and the kernel linker will resolve the missing symbols in the MAC driver to those in the library. It also means that there is only ever one copy of the library in the kernel, even if there is multiple MAC drivers using it. Andrew