Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4002815rdb; Mon, 11 Dec 2023 06:22:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQlX3LfI31cXrRKs0XJOK4HDVIHnV3Wctv5AS0zkPCBpsGnXR1Dcw0KSUv6jUeuoLA7NPd X-Received: by 2002:a17:902:e789:b0:1d0:b8dc:ec90 with SMTP id cp9-20020a170902e78900b001d0b8dcec90mr2315517plb.64.1702304532382; Mon, 11 Dec 2023 06:22:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702304532; cv=none; d=google.com; s=arc-20160816; b=IKq5lbaiG9usPeZoWEzpwEAYPNKvHCxJzvUhVKtV3N5T/R0noIVusoQ4w7ub2132yN FKoodlbU9z7vMuEHwnv9N/ealRfGjirxuGPBTMvcf6pIv69LUSvl7t2NxjUiYbeKDTgI 7q022pBDVDsyaxG8w9qb4wugwwB6ZHk6m/nTy/5sTbXzwwhFU9AjhNPMC1enDF57TZ+2 wDTpLGUYYr8IojXXftZNtjFjspTVg7GqjLfaj+ZT6ezcHcAOx5nCS59468JIohEXg9rA P+1lkPrqSdL7Bb73Tt2S4nc7lb9nnS8epvXKAUbh3xkFabn7l9qwufMBd21PghOj8t1Z VD9A== 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=3ZV48LQITHOdv4wAedeujOP64YpOp9FQs7bVs74eoQA=; fh=lpngvKjC+cV9FnabzfaCEPPYYAl3InQazmyXqkyDoKY=; b=iPrzOgZV669aIJCu+WG8R1Mt2UGo4ZNrWNrWqqB2+nASx14bRDVSAhh6m0zscyko/h Rbp7dNA/s2M1e9DiTp0mEZxjXRKSZ/y8WnDc5E9TPwIMQT1cI4YfqXXADl2kRBvNRuFR PaJCILoHBru4BCY9gp6Sqekxr4U0lsZD7M4K3uYTiUDZEVEdiQntm5R9YaWy19WHvlgN ZKURfXfVf5CYSdSpz0CF7m1yuezSMD1dMe9LD7nqBsBq6/2zzw8a39SS7+2jdvx9hNwN 5UvSWqLZd7589lqCBuPcm40SbdJP1iOYaMNCNh775XAlEal+1LBN7zeAmQg1PFTj3Du0 fD8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=TTAR4WIF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id h2-20020a170902748200b001d0969c5b76si6136818pll.74.2023.12.11.06.22.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 06:22:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=TTAR4WIF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 24BCE804746D; Mon, 11 Dec 2023 06:21:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344666AbjLKOVa (ORCPT + 99 others); Mon, 11 Dec 2023 09:21:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343747AbjLKOVA (ORCPT ); Mon, 11 Dec 2023 09:21:00 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6B05A5D1; Mon, 11 Dec 2023 06:09:14 -0800 (PST) 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=3ZV48LQITHOdv4wAedeujOP64YpOp9FQs7bVs74eoQA=; b=TTAR4WIFUcT7OOvA4W3jlDpybH yZH6lFm5YDaAPk3c8IiHfrT80eA4u8p60YuzuM93UbLkZGL8LTeegW9b2Kiux59uOwpLndn0EDEOu rV4pJEWujufHhEDVM7exXtk9S6Q2xxMe9XV1A482ghStTfPmNqMARIHKrsBfjmc0Q0jw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rCgy5-002cri-9G; Mon, 11 Dec 2023 15:09:09 +0100 Date: Mon, 11 Dec 2023 15:09:09 +0100 From: Andrew Lunn To: Maxime Chevallier Cc: Simon Horman , davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Jakub Kicinski , Eric Dumazet , Paolo Abeni , Russell King , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , =?iso-8859-1?Q?K=F6ry?= Maincent , Jesse Brandeburg , Jonathan Corbet , Marek =?iso-8859-1?Q?Beh=FAn?= , Piergiorgio Beruto , Oleksij Rempel , =?iso-8859-1?Q?Nicol=F2?= Veronese Subject: Re: [RFC PATCH net-next v3 01/13] net: phy: Introduce ethernet link topology representation Message-ID: <67557c83-4318-4557-ac96-858053b5f89b@lunn.ch> References: <20231201163704.1306431-1-maxime.chevallier@bootlin.com> <20231201163704.1306431-2-maxime.chevallier@bootlin.com> <20231209170241.GA5817@kernel.org> <20231211120623.03b1ced4@device.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231211120623.03b1ced4@device.home> 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Mon, 11 Dec 2023 06:21:59 -0800 (PST) > > > @@ -10832,6 +10833,8 @@ struct net_device *alloc_netdev_mqs(int sizeof_priv, const char *name, > > > #ifdef CONFIG_NET_SCHED > > > hash_init(dev->qdisc_hash); > > > #endif > > > + phy_link_topo_init(&dev->link_topo); > > > + > > > > I don't think this can work unless PHYLIB is compiled as a built-in. > > Inded, I need to better clarify and document the dependency with > PHYLIB. It is getting harder and harder to make the phylib core a module :-( How much work does phy_link_topo_init() do? Could it be an inline function? Are there other dependencies? Also look at ethtool_phy_ops and e.g. how plca_get_cfg_prepare_data() uses it. Andrew