Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1889666lqo; Mon, 13 May 2024 01:07:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFHqCVudCiSsSojKDnI91S+8J/QMjAXUqs4uTzmHgVHqqz1t2Ex7J4OJOqXgUra5qtP+J0AOEnTG8txFa8lsnlLWOtFyI9TKW4WWCqrA== X-Google-Smtp-Source: AGHT+IGWFRIFVDSm8Zi3f0IUo+lbHNswcJiCwsJK4gOvrgWM8Eig4CLSaOCXwy66s2td0HfBocBu X-Received: by 2002:a05:6358:4301:b0:192:ba37:f9f1 with SMTP id e5c5f4694b2df-193bb3fc89amr1058595955d.5.1715587667297; Mon, 13 May 2024 01:07:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715587667; cv=pass; d=google.com; s=arc-20160816; b=wyM1Kbfrx2IcE354QJtNsW9JVF9B9c+Ojl1oqrYtYpP71s0Pxd4myIdxSntA+ZPkhg GQJQiPOE7K/MAuQvpOMMQ+hp/M/znzuGw7S6nlhr42HfU1ja67LsUSKYyV3jbdTwbijf yXWPQ2vC115Y4vTJ3axsqppDGpJlnnQR7Srp154uQ5FW8quCOB63TFEwZftwSGt4KVYA uFm5QhdGcmwWGva5iprB3Qe3ZQ2k3eeXr6ELJ9+OAzbzNdtbQu2ATLk2RYbU26erz98m CZeeOAIbGGnuYWirJsHf7ue+C+tYIy1HCcTQkdBDd8ufkdLIzr3owehL0AThEF6bFkuy TESg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=c/YUgEe1bGHZKnZAoXKQuqCOAbUHDdbNXzV7Y3U3kIQ=; fh=KRrIqt5hrCAYbKMDBTvch4I6V0TQ71fdtKatQB5VDiU=; b=UT/NcMHbE1cPlmnBm+EkkbFFEt6Ah82egnCoQBEYIxzXUymGA6wkR0XRSPSw2x2HRL jkYGsUiNDewDOqXv4/kkmghjXw582UViXWYccWyu2ns2rCm4Q467TVgR1BQMNOKzLEA/ HFmnfX7umA6GSZkBDePizlf/sKxriltVdmtTSs5voLqSelm5+AxIm6NNQBKR9trF2UUT J6HPGOfmiNRjSzXcWRScjs1FSYF1nuC+QedglQvDbTbCHvMQta263G6KI0wFXH7LC2GO i9f0ftoGqUG0hXFNRTmzvxWwQQcdN+ec5+4MTIS0z21Y+tXzDNjTSU7IYA+tGwQlllOE tcDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KVb74pfN; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-177321-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6341404fff8si8204715a12.878.2024.05.13.01.07.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 01:07:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177321-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KVb74pfN; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-177321-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E12C0281E57 for ; Mon, 13 May 2024 08:07:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AABC4146D76; Mon, 13 May 2024 08:07:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="KVb74pfN" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1460146D56; Mon, 13 May 2024 08:07:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715587656; cv=none; b=nMMcvnsI6KGvr5lRWOvbdpbjKPSCsVYs4+XVt0W/9p3ugVgAyFFNPJmPgQbPKlZ0g3Zbh9Mh9S8LSoT2dc2biCvp7ogLCYfL2MMlJZ6zY0FsKuxKB3h5j3cfizmqHNCUEiRrobPFuDCiQlg8Z/8tPkyRc8/AecNcnV99bbNX1ZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715587656; c=relaxed/simple; bh=v/E2QkMG6Tnerr+A88F9f3vFPE8K82fwGriKYoSJQSg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FBU7Cbsb8EwK8MGA4o5kHCoLCelxkpt+B+yOnE3Z/gay93YUjz8esJj70mwQFeidvsRaBUOZukTf39Q2f3yENUu5Qwtu2PGHfB6wjWeCie6oxAXCdxZqktl/jqF0MmHvhXXzYASf2AF+5C4dfiK3A1YE2kxWy3drgboA/Qgs+q4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=KVb74pfN; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id BB31AFF80C; Mon, 13 May 2024 08:07:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1715587653; 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=c/YUgEe1bGHZKnZAoXKQuqCOAbUHDdbNXzV7Y3U3kIQ=; b=KVb74pfNhpZrW/QoHHtX0rQAF/onUadKVpuW9nH2Jt/p2aJr+M3WfrdsoLbnk83+b3S7gL WAxlBSDUFLCITPRCbjqjwoHxVLGuUIyqhDrpu0EUqHUV5miIP2/84lPAV5t/4WfkuBZodx TXXJMOVygI5he/O6T1zjLV5JO29Shgb9GtEBtfxF2uBoPZ6xOGdvW1jZoBqSdRVXueB5/1 PYXCCotWQPY3nwtxuRyEsPQQyDNK4UHgduy2JV2r/zyoVA6rXpKoYdzhEwRWtoMPrrPQfE 3O06zzM93OmMl2UbkDjYl6A4saWhrhwhEl51Uo9PsnD+kbiI6SWb7EwWpisOWw== Date: Mon, 13 May 2024 10:07:29 +0200 From: Maxime Chevallier To: Heiner Kallweit Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Russell King , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Vladimir Oltean , =?UTF-8?B?S8O2cnk=?= Maincent , Jesse Brandeburg , Marek =?UTF-8?B?QmVow7pu?= , Piergiorgio Beruto , Oleksij Rempel , =?UTF-8?B?Tmljb2zDsg==?= Veronese , Simon Horman , mwojtas@chromium.org, Nathan Chancellor , Antoine Tenart Subject: Re: [PATCH net-next 2/2] net: phy: phy_link_topology: Lazy-initialize the link topology Message-ID: <20240513100729.39713abb@device-28.home> In-Reply-To: <6cedd632-d555-4c17-81cb-984af73f2c08@gmail.com> References: <20240507102822.2023826-1-maxime.chevallier@bootlin.com> <20240507102822.2023826-3-maxime.chevallier@bootlin.com> <6cedd632-d555-4c17-81cb-984af73f2c08@gmail.com> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-Sasl: maxime.chevallier@bootlin.com Hello again Heiner, On Wed, 8 May 2024 07:44:22 +0200 Heiner Kallweit wrote: > On 07.05.2024 12:28, Maxime Chevallier wrote: > > Having the net_device's init path for the link_topology depend on > > IS_REACHABLE(PHYLIB)-protected helpers triggers errors when modules are being > > built with phylib as a module as-well, as they expect netdev->link_topo > > to be initialized. > > > > Move the link_topo initialization at the first PHY insertion, which will > > both improve the memory usage, and make the behaviour more predicatble > > and robust. I agree with some of the comments, as stated in my previous mail, however I'm struggling to find the time to fix, and re-test everything, especially before net-next closes. Would it be OK if I re-send with a fix for the kbuild bot warning, improve the commit log as you mentionned for patch 1 so that at least the issue can be solved ? I still have the netlink part of this work to send, so I definitely will have to rework that, but with a bit less time constraints so that I can properly re-test everything. Best regards, Maxime