Re: [PATCH net-next v1 2/6] r8169: add support for phylink
From: Andrew Lunn
Date: Sat Jun 06 2026 - 06:08:25 EST
> +static void rtl_mac_link_up(struct phylink_config *config, struct phy_device *phydev,
> + unsigned int mode, phy_interface_t interface,
> + int speed, int duplex, bool tx_pause, bool rx_pause)
> +{
> + struct rtl8169_private *tp = container_of(config, struct rtl8169_private, phylink_config);
> +
> + struct device *d = tp_to_dev(tp);
> +
> + tp->current_speed = speed;
> + rtl_link_chg_patch(tp, speed);
> +
> + if (phydev)
> + rtl_enable_tx_lpi(tp, phydev->enable_tx_lpi);
This is not correct. You should implement .mac_disable_tx_lpi and
.mac_enable_tx_lpi in phylink_mac_ops.
Andrew