Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp173542rdb; Wed, 14 Feb 2024 17:15:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV6dB/KKXK3BaZLVUPhaAI5H6uUzVILNW7apXzkZeeK2z1HbsKtjNEtWjZILoXcXaQA5iieZKBcH9BRh3XLM9Eze4ZHNKPDVMRJ99WGsw== X-Google-Smtp-Source: AGHT+IG92rMyfsZRBGxUSHw2E9/ZeUKc24Gm84CqJBFn6G57DgvZCSjgtW0nG0vJSl4+j2TeiJzx X-Received: by 2002:a05:6871:4094:b0:219:953a:61c with SMTP id kz20-20020a056871409400b00219953a061cmr229436oab.44.1707959723931; Wed, 14 Feb 2024 17:15:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707959723; cv=pass; d=google.com; s=arc-20160816; b=Upr1NWyDnT8lOl69FjRTj9Fgfb0AyYwf1CxiYjwWVbAqHrpmTbQRVtqUvBKX0fGUz4 iRtU5sy5ONRVk/ThuWl2ENWA3xvx6U4X3De/Qzt3NMVoWFbjPkWV6qwzDfdZHtiGOhFi r7d0b8Ynz1nytbyyfKqDb+kLaH9IiL3A9bcsOC/EguTmkFjGmMPaiQkcxjiB4X46YaBC 68L8iU9yz4v36z6Sdcq0S6zZaC7SpgAeONnqD3WOIBmXuICJjs7EKOWA58Y5k6Olbisx xqhdtT9uv/dok8LoBThvMi+gHueq9/UJJQ6ZO3dAutwa+TkWApvImPV7ohL3pupXhBbI aplg== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=HfCpvlD7yd3QBdPVEWq69lT26zemY8pJ/xxWvOEwWdY=; fh=g8oKSg7TGHC7zYy1ERdWUzNSqrLtqEim99JpRljDKTA=; b=vYhoKNyOEbOwSrDnDln74kJ4pUIp31IUqNleoBb7PMJ66Kr9d5xy53K1znfdpDQQ73 wgur8b4kOq1KPhmBnphBthKDcowqMf/uE2uevbaiTbX/1aSBrKlHiEdPJu78NYMT4ePR iCtpCh7f5oNCXrFmr5YJSt1cupAqDSykSgVs2pIf1QtrzZY/8Mu5mvLn5s297LoXhD2G BBdiaqzh9xRdskZRcq1tTuqlWI+ahjEp92blwUIipXZ2Z5Y/1nQIaxQ+/eOSUhHIJ42g faQcu8MxaClj5VpjQ4lj8cUdPT+5Mgu/0LFSFOMLJ/BXYJVvGjdOEBJfa5pL5oIlq6fW juGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZMf6Eq5R; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-66205-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66205-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b28-20020a63715c000000b005d96d182c41si119234pgn.490.2024.02.14.17.15.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 17:15:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66205-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZMf6Eq5R; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-66205-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66205-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A9FF8B29BC1 for ; Thu, 15 Feb 2024 00:59:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1B1C1392; Thu, 15 Feb 2024 00:59:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZMf6Eq5R" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E7D85A59; Thu, 15 Feb 2024 00:59:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707958745; cv=none; b=kAa+bauCpxeXEZCk4eixAxA815zUk1jR+JYaIvAECg3aWxak7V66FSevvyUYMZA2Does/LpxmN+5gYtZXh4CrEDYdgQbJKroIyFUm7eBAl+5xnCyefymKibwbmnqnmX/f5++a8gAgR0uUZvxFR01LTWJRTQISsLVYXuuYkYNqVE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707958745; c=relaxed/simple; bh=Nl+odjlfK+R+k/m+CZLLi9s6iAFfj0YBGYAq3Za4WGA=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kZSk4RywuHBbmpCFW7+iHXBQdNPF0tJdYTZ1Paat/+B6PJcQsvGIsHQmQHsmDOSBWdPK8PrPDOmEWANjfpO3UkoRkacVGMhb+3NGHlpZ6QDyxjcAWHV3x77+SFcr2Ye7rk93vBoBabxSpDhcdv6dwnZZdaEPOsjn1MxE9xXaqoM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZMf6Eq5R; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DE8AC433F1; Thu, 15 Feb 2024 00:59:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707958744; bh=Nl+odjlfK+R+k/m+CZLLi9s6iAFfj0YBGYAq3Za4WGA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZMf6Eq5RsvfPskmrJzatmYAiSPCm41VIsaNzxFrS0QiNVtEA2VPMn8J7L8y1+pejr WuJsto4TmDDe5hdsHhdUrNBvNL3/yNSaDj0oLMpmz/VdDaUfrHZl6fWRtN3gSnC2ky ykmOESm2qcDTvwibwgOoQ4SwG2Ss1zHETKGb5rOZUNv+s2DLmvHUErat+yqt3n+n1S OcsInxQJwNmzMBmlK6l7RV4jmrVRCroySN8v0LgilU2biEn7gvTVJHbZZPYPiv78mb fkWnpwTS2wMQLMBLKEAHNME6yx5OmVQFLLWG2PxsiyLBHlqDj2rJ8o/W+uDONbh4QQ TvJi3MTFT1xfA== Date: Wed, 14 Feb 2024 16:59:02 -0800 From: Jakub Kicinski To: Maxime Chevallier Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , 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 , Simon Horman , mwojtas@chromium.org Subject: Re: [PATCH net-next v7 00/13] Introduce PHY listing and link_topology tracking Message-ID: <20240214165902.55bf3a04@kernel.org> In-Reply-To: <20240213150431.1796171-1-maxime.chevallier@bootlin.com> References: <20240213150431.1796171-1-maxime.chevallier@bootlin.com> 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 On Tue, 13 Feb 2024 16:04:17 +0100 Maxime Chevallier wrote: > This is V7 for the link topology addition, allowing to track all PHYs > that are linked to netdevices. > > The main change in V7 is the protection of the main internal API > entrypoints (link_topo_init/cleanup, link_topo_add/del_phy) by > IS_REACHABLE(CONFIG_PHYLIB). > > That's restrictive, but it looks difficult to do otherwise while still keep the > data structure opaque and not add dependency clutter with PHYLIB. > > As you can tell, I'm unsure about this, so please don't hesitate to > comment on that part :) > > The other changes are very minor, the only one is a call to netdev_put > in the .done() netlink callback. > > As a remainder, here's what the PHY listings would look like : > - eth0 has a 88x3310 acting as media converter, and an SFP module with > an embedded 88e1111 PHY > - eth2 has a 88e1510 PHY Needs a rebase, core has been busy lately: Applying: net: phy: Introduce ethernet link topology representation Using index info to reconstruct a base tree... M MAINTAINERS M drivers/net/phy/Makefile M drivers/net/phy/phy_device.c M include/linux/netdevice.h M include/linux/phy.h M net/core/dev.c Falling back to patching base and 3-way merge... Auto-merging net/core/dev.c CONFLICT (content): Merge conflict in net/core/dev.c Auto-merging include/linux/phy.h Auto-merging include/linux/netdevice.h Auto-merging drivers/net/phy/phy_device.c Auto-merging drivers/net/phy/Makefile Auto-merging MAINTAINERS Recorded preimage for 'net/core/dev.c' -- pw-bot: cr