[PATCH net-next v10 04/15] net: phy: Introduce PHY ports representation
Andrew Lunn
andrew at lunn.ch
Sat Jul 26 13:38:32 PDT 2025
> +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
More information about the linux-arm-kernel
mailing list