Thread (39 messages) 39 messages, 4 authors, 2025-08-22

Re: [PATCH net-next v10 04/15] net: phy: Introduce PHY ports representation

From: Andrew Lunn <andrew@lunn.ch>
Date: 2025-07-26 20:38:45
Also in: linux-arm-kernel, linux-arm-msm, linux-devicetree, lkml

+static int phy_default_setup_single_port(struct phy_device *phydev)
+{
+	struct phy_port *port = phy_port_alloc();
+
+	if (!port)
+		return -ENOMEM;
+
+	port->parent_type = PHY_PORT_PHY;
+	port->phy = phydev;
+
+	/* Let the PHY driver know that this port was never described anywhere.
+	 * This is the usual case, where we assume single-port PHY devices with
+	 * no SFP. In that case, the port supports exactly the same thing as
+	 * the PHY itself.
I wounder if you should hook into __set_phy_supported() so that DT
max-speed, and the MAC driver calling phy_set_max_speed() are covered?

	   Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help