From mboxrd@z Thu Jan 1 00:00:00 1970 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 CF5B53570A3; Wed, 11 Feb 2026 09:36:42 +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=1770802602; cv=none; b=CCp5USrAJZqVDP6hW8pXonYO7OPATmyihmGFIBa7aQw0w9sbZhv/Bhi7C8fwWVF5jeOP+ayafT06pw9zfXSoKYIYit7Z5dfd5tpjO95vyxTpNSQwWSyL8vJFoNO0p9aHPddHgTr4RPHkvLiwRk0F1sNwpxHbnExxCvVir59cjPI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770802602; c=relaxed/simple; bh=GESarjr2933u4U1pEAsYWs63nBlt+cEhT+tMQsK3K2k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=H0DA7YOiQLYdEkOKXLnkKBF4VaTpqAEuH+RmeX7kNNqMdXfNQQADoUs229WZBJ9JASxqtjj8T5ILIkr9qAqfOJN8kOqY0cf2jpTF7DUtxbGk47e9tCvYT1eLKNcuTKeuMIZxrKcbIoLyxobgVw2oQMMXen3z84mqz6RcRJiqIQs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=miwhChgn; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="miwhChgn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84F0CC4CEF7; Wed, 11 Feb 2026 09:36:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770802602; bh=GESarjr2933u4U1pEAsYWs63nBlt+cEhT+tMQsK3K2k=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=miwhChgncWW4w6VZHc7hGPS0QebH1ii5+f4Qx1MSnU4u+x9DOd1Ja3Dee3SeTMhNP lMqccOvBcCI+qTorLqfxflKGa/2/Do8Q2ISSnMhaHaUJJJEVgcfcp4BvMywEOd62oD crHM+b0tfwpyzm0kjvC89cxN9Kgw5hsGbGaV+FCwT7v9u1cSj4Ef3YO2JnB+GbKr4Q V2K3FZ1rqwT9prl69gUnONpQmqlYNXF+6qkAdyyfvC4EqkzPLOv705qx1qcz7EAroK coUYKQDODit2/zbgDXF1in7rpvQcpibAsF0PthtSJLoTTfSp9ziTo+1JWqxbQu4um6 5LsgHHN6a7U7Q== Message-ID: <3a9a158f-bb17-43fd-80ce-1d70839f795a@kernel.org> Date: Wed, 11 Feb 2026 10:36:34 +0100 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v5 01/13] net: phy: initialize the port support based on the PHY's for OF ports To: Maxime Chevallier , davem@davemloft.net, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Russell King , Heiner Kallweit Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Herve Codina , Florian Fainelli , Vladimir Oltean , =?UTF-8?Q?K=C3=B6ry_Maincent?= , =?UTF-8?Q?Marek_Beh=C3=BAn?= , Oleksij Rempel , =?UTF-8?Q?Nicol=C3=B2_Veronese?= , Simon Horman , mwojtas@chromium.org, Romain Gantois , Daniel Golle , Dimitri Fedrau References: <20260205092317.755906-1-maxime.chevallier@bootlin.com> <20260205092317.755906-2-maxime.chevallier@bootlin.com> Content-Language: fr-FR From: "Christophe Leroy (CS GROUP)" In-Reply-To: <20260205092317.755906-2-maxime.chevallier@bootlin.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 05/02/2026 à 10:23, Maxime Chevallier a écrit : > With the phy_port infrastructure came an ethernet-connector binding, > allowing to represent the MDI of a PHY in devicetree. This allows > specifying the mediums and pairs of a port. > > Let's initialize the port's supported list based on what the PHY > reports, so that we can then filter it with what the connector allows > using. > > Signed-off-by: Maxime Chevallier Reviewed-by: Christophe Leroy (CS GROUP) > --- > drivers/net/phy/phy_device.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c > index 8a3eb1839a3d..9b8eaac63b90 100644 > --- a/drivers/net/phy/phy_device.c > +++ b/drivers/net/phy/phy_device.c > @@ -3499,6 +3499,9 @@ static int of_phy_ports(struct phy_device *phydev) > > port->parent_type = PHY_PORT_PHY; > port->phy = phydev; > + > + linkmode_copy(port->supported, phydev->supported); > + > err = phy_add_port(phydev, port); > if (err) { > phy_port_destroy(port);