From mboxrd@z Thu Jan 1 00:00:00 1970 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 3A7BF3E5585; Thu, 14 May 2026 13:46:09 +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=1778766376; cv=none; b=akC1hfzKlK0goNXI6AiGkyl609UESJMJ36u3Bl4Vl2oPh+u25fKZzt51nuJUy5JZiqCJqPlEtLKhpejKFYN3RnbRmJjXU3XYnpqd8l8CspW8tv0hXWNN77uCzurmLcIi89yoyBiHw1vy6HFt3CN3WdF6VqD+6Nsw862oMdckv+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778766376; c=relaxed/simple; bh=BEEVWKqdySRNF7O45DEyvhuEyBbWMS2N1VwnLEXfbr8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tiAQnieddCDrTm8mfjuzXUFXTphczSE6URXBCZSoTKV0XlBDaA3KJ57f+gB5NKr71ppEzX0CBjltC0fzJzZ2y+3ClR168Kkau1jb8B/iRup+3+uLJj1PfskyjyzB335Ni1sSkI9mbNUUrkGsKCEpgYWghTkzx8vtP5ltzTAXQmY= 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=uaEIgbij; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="uaEIgbij" 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=KhMfyTyO/PAijePJNKA9PHguksSnaC5AL+FVDT3jcgI=; b=uaEIgbijB+/+gGHOAcw03D0kPX /nJWImpSwLEvvlXvCwCEMh9Rtz5zcvKd8fw3hUonogdSh/8AHJEBAgXRFtEhixtFceDoGQNA+SEgx QID4pgnS8CIqC+8qLjzVqQhxdmIedX8dJno8lRjk5z29n6lRwQKOgknGCR61I+osP4SM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1wNWO0-002uYs-Ja; Thu, 14 May 2026 15:46:00 +0200 Date: Thu, 14 May 2026 15:46:00 +0200 From: Andrew Lunn To: Maxime Chevallier Cc: davem@davemloft.net, Jakub Kicinski , Eric Dumazet , Paolo Abeni , Russell King , Heiner Kallweit , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Christophe Leroy , Herve Codina , Florian Fainelli , Vladimir Oltean , =?iso-8859-1?Q?K=F6ry?= Maincent , Marek =?iso-8859-1?Q?Beh=FAn?= , Oleksij Rempel , =?iso-8859-1?Q?Nicol=F2?= Veronese , Simon Horman , mwojtas@chromium.org, Romain Gantois , Daniel Golle , Dimitri Fedrau , Frank Wunderlich Subject: Re: [PATCH net-next v10 4/9] net: phy: Create SFP phy_port before registering upstream Message-ID: <9b9d7698-6e6b-4aba-8ba8-91df71efa81f@lunn.ch> References: <20260513130521.1064094-1-maxime.chevallier@bootlin.com> <20260513130521.1064094-5-maxime.chevallier@bootlin.com> Precedence: bulk X-Mailing-List: netdev@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: <20260513130521.1064094-5-maxime.chevallier@bootlin.com> On Wed, May 13, 2026 at 03:05:15PM +0200, Maxime Chevallier wrote: > When dealing with PHY-driven SFP, we create a phy_port representing the > SFP bus when we know we have such a bus. > > We can move the port creation before registering the sfp upstream ops, > as long as we know the SFP bus is there. This will allow passing the > phy_port along with the upstream information to the SFP bus. > > Signed-off-by: Maxime Chevallier Reviewed-by: Andrew Lunn Andrew