Re: [PATCH net v1 1/1] net: phy: realtek: fix EEE advertisement write on the internal PHY MMD path
From: Andrew Lunn
Date: Thu Aug 06 2026 - 10:09:18 EST
On Thu, Aug 06, 2026 at 03:47:16PM +0200, Oleksij Rempel wrote:
> In rtlgen_write_mmd(), the MDIO_AN_EEE_ADV case swaps the arguments to
> rtlgen_write_vend2(): it passes the MMD register number as the OCP address
> and the OCP address constant as the value. The caller's value is discarded
> and the write lands on the wrong register, so the EEE advertisement cannot
> be configured on the affected PHYs.
>
> Mirror rtlgen_read_mmd() and write the value to RTL_MDIO_AN_EEE_ADV.
>
> Fixes: da681ed73fb9 ("net: phy: realtek: improve mmd register access for internal PHY's")
> Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew