From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4D139C4332F for ; Tue, 12 Dec 2023 13:11:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lYZYlyW046H5A+5DheTvA91jZov28fCyQ5HherCWFAs=; b=Pp7Wh8C2Dvp7Xn L2DUg5ZxhJmkM/P/II4FhsRZrUs/cWFlm6GX1bgl07P1ponrT3eJBZUwV5nq2qT48xYms6234nwFL qYD2HuAboeqcSs9LtYJwht4eekPSQI5jvN0jsNt4jKD/5zfBCLrOIX1umAFPBZD38a53/nwh4x7UZ ZvpC0bKLMddpq91HMPyhgeqDmxqG+OdunXEBkTSEPMimAUHrBKmvs2/p1rZTuSaNM28IjBb/GXhv+ o76WdjQPQCJEuVi9eDQelNbM+NFhBRQDtSuo2CXHZfS27lJyHcESFcI+v5KzCHXHeoyYQwUA4ze4c L7HkyeneVT78wGANtmfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rD2X2-00BlA4-39; Tue, 12 Dec 2023 13:10:40 +0000 Received: from relay5-d.mail.gandi.net ([2001:4b98:dc4:8::225]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rD2Wz-00Bl9S-1G for linux-arm-kernel@lists.infradead.org; Tue, 12 Dec 2023 13:10:39 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 031601C0007; Tue, 12 Dec 2023 13:10:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1702386629; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=atELFnnIPthqWoz2bHuN1bLUw36gajFDes0IJ/cmoaA=; b=aW8gD0JRdbGr0NXlm1/llPif8XCoQDwRZP9mhQl30Bb1nhbVJ9YfMP6npegebx2FhmVNuG cFg4LCrmzoeje3lshNHVDKmZf1t7Biz89foTOLpNkFOu5URuDBnXqAOnlyHnExKYETXjNc 6gyGq10FG130gPiUsJixdIYmMFH2V4BB/Nl3LhmsabozpPhSY0zlivgkaONO4sFxJMwpXV qYDLYX6x6mQDv/xjZhsz2UwwzkGmbRLu9lNcEXBQKFsZHrg7kZvoEqhbyielS3ubVC5E8z Fe+NxJa+T/WhdwwNnh1z2EWAC9Nj9Z2FVwER92sEp5heBmkwYlmjR9SSGd7MnQ== Date: Tue, 12 Dec 2023 14:10:26 +0100 From: Maxime Chevallier To: Andrew Lunn 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 , =?UTF-8?B?S8O2cnk=?= Maincent , Jesse Brandeburg , Jonathan Corbet , Marek =?UTF-8?B?QmVow7pu?= , Piergiorgio Beruto , Oleksij Rempel , =?UTF-8?B?Tmljb2zDsg==?= Veronese Subject: Re: [RFC PATCH net-next v3 01/13] net: phy: Introduce ethernet link topology representation Message-ID: <20231212141026.37e7af58@device.home> In-Reply-To: <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> <67557c83-4318-4557-ac96-858053b5f89b@lunn.ch> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 X-GND-Sasl: maxime.chevallier@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231212_051037_745187_7AA0F4F2 X-CRM114-Status: GOOD ( 14.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 11 Dec 2023 15:09:09 +0100 Andrew Lunn wrote: > > > > @@ -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? Sorry about that, I'll make sure it works with phylib entirely disabled for next version. I try to keep the integration with net_device minimal and avoid any dependency bloat, we don't need much besides xarray stuff (hence the fact there are 2 headers, the phy_link_topology_core.h containing the bare minimum), but I did miss that. > Also look at ethtool_phy_ops and e.g. how plca_get_cfg_prepare_data() > uses it. Thanks, indeed that's a good example. I'll also address that in the netlink part as well. Thanks, Maxime _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel