Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp476367lqe; Sat, 6 Apr 2024 08:52:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwdtgVMm3hWB3Df7IYVowkB+C+R9QkcG2wWpvhLCFuBI8o+killzD940f58I+SXSnjQJ6pkg2Ci8t/OQsjhlTKt3PEJZ9tqZtqinOwaw== X-Google-Smtp-Source: AGHT+IFD4QewFH85AV7nm6skigCHy91kaIWoLsCK/+ZZ9CUibIg+9yEem7PItGMXPETQU41lpgKd X-Received: by 2002:a05:6a00:1489:b0:6ea:ceff:2492 with SMTP id v9-20020a056a00148900b006eaceff2492mr5462938pfu.32.1712418756248; Sat, 06 Apr 2024 08:52:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712418756; cv=pass; d=google.com; s=arc-20160816; b=Kle3ubqF/aN3HvHKm3rcCltLPnQDiMk8OY944D0y5bT4PNIRq52Xt3qFp8EtNHogE7 62SDCTFmwQsU2HuMOoOmsOr+l+3X6LVdMaAUVIcyhlj0ZWuG5VUm0irhDwvF5Uvn+PZs pv0i1PK2h0fehPCnoOGgDAyHzLwFpIRoUgEK25jK57xUUhOlm43CXRaEAKcWTsjsh/Da 4YiqKuyUVoa1j7cuvU1IVVqI/ViBKos2r17lnEjHkyiLD7KEAfgEjpFX8oRZyegepncw +Kuw1Z40V49ghBgH/bLpFvHQHH/VEGQBPuuFCwfC93jeCDjSsRYafxFTgoN0JALyvkSR /pUA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MEl8Sy+tCfS2l7mF/OXdN4vincdv+IXBh938c/3Vnqc=; fh=iFMvJPe5+iMz9fvI7Ro3QqHP2FRNSaC5Or4Przs7Ch4=; b=WGuav+kLo0gUVS8PnxNoVQPcuui/AA5trw/uOqEvShIwvV8yhWbGToFLlD/5tknIPM FhuvzU/RKjV5gHZ4KOUftM9n71EfGXc1GQr8josKCmbK4seDRIveoAPkaq5FUcN5oBH5 lzjVmyfEvAil814t/B/9NWhpbDjtZYuiwRgNTOUr5+BcEJTqcTtMbtDB4Q59AAqFbNK0 ksGO3QMSmOatTiWeAR45HFUOs+JZVlKikfFvO6eaF1MTkf25OAxRPbefF8DlqHaQC37o 7rKjhXMgjhCn+hzOc0el74cVeToxL2RJlcCQo85MvjaXEt4K9FueTYzdjGP4VP5hlGNO 5fHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=lJ8iiQfV; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-133990-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133990-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q15-20020a63d60f000000b005ceca1094c3si3283452pgg.853.2024.04.06.08.52.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 08:52:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133990-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=@lunn.ch header.s=20171124 header.b=lJ8iiQfV; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-133990-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133990-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 E31782823DC for ; Sat, 6 Apr 2024 15:52:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6A7C3BBE1; Sat, 6 Apr 2024 15:52:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="lJ8iiQfV" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 6FB011CFB9; Sat, 6 Apr 2024 15:52:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712418747; cv=none; b=m4LLx5TDMZhAl4xNCjyrzBRQm1TSbJEu7IErkmzCzC54oVrUjKb1jvOO5iy8BhrkCSd6oG3L5FEZOdNuLlS5IOtxXlD0GGPEoBZl+DyJdZW/XIZzTQ5WkcoCTbgpmWT1Z6yECGx79skXww6DtvuQRynNXbyM7L3FbNf/o8oiLgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712418747; c=relaxed/simple; bh=DijJAWy9i/up+jDarXl3HGvDuc5nZ1pLtm25cesA4iA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qGCUUwDOW8iLJG9l4P6Ahd+7gdguzOSFQm5TmqhWYFoiX3W8KraRwaqp7GklwFm0v0cNgF+O2LueT9V0xLiL8i4HVHS3N8rjdz/De3/Pbka82MX798aESdcl4bhPV+Zbb8lvo12VxdGjBBKzRDN0y8atd1p8wjN2q2kyq/TkKqU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=lJ8iiQfV; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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=MEl8Sy+tCfS2l7mF/OXdN4vincdv+IXBh938c/3Vnqc=; b=lJ8iiQfVAnvqJaBytHQRN4D1YQ yeMHKI5j9PnYO39PT75Axy1RNkaEMWC1PopS9hZ9yVKdwaOGVc266R272RDGtDKALer65EXNH5F/q kn4hauzI68jYrofo2YEm/YwtEakC+bMdV9+Qa4XsCawrCKPdMDTlWXlzVTFQSs19pWv4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rt8L8-00CNTV-IQ; Sat, 06 Apr 2024 17:52:22 +0200 Date: Sat, 6 Apr 2024 17:52:22 +0200 From: Andrew Lunn To: Maxime Chevallier Cc: 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 , Simon Horman , mwojtas@chromium.org Subject: Re: [PATCH net-next v11 03/13] net: phy: add helpers to handle sfp phy connect/disconnect Message-ID: <5561aaf7-b01a-495a-958f-2a07e1ff8cf3@lunn.ch> References: <20240404093004.2552221-1-maxime.chevallier@bootlin.com> <20240404093004.2552221-4-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-Disposition: inline In-Reply-To: <20240404093004.2552221-4-maxime.chevallier@bootlin.com> On Thu, Apr 04, 2024 at 11:29:53AM +0200, Maxime Chevallier wrote: > There are a few PHY drivers that can handle SFP modules through their > sfp_upstream_ops. Introduce Phylib helpers to keep track of connected > SFP PHYs in a netdevice's namespace, by adding the SFP PHY to the > upstream PHY's netdev's namespace. > > By doing so, these SFP PHYs can be enumerated and exposed to users, > which will be able to use their capabilities. > > Signed-off-by: Maxime Chevallier Reviewed-by: Andrew Lunn Andrew