Re: [PATCH] net: phy: realtek: restore RTL8211F RGMII delays on resume

From: Andrew Lunn

Date: Wed Oct 14 2026 - 08:12:51 EST


On Wed, Oct 14, 2026 at 05:36:59AM +0200, Karl Mehltretter wrote:
> The RTL8211F-VD loses the RGMII TX and RX delay enable bits across a
> software power-down. rtl8211f_config_init() programs these bits from the
> PHY interface mode, but rtl821x_resume() only clears BMCR_PDOWN and waits
> for the receive clock to stabilize.
>
> On a BeagleV Ahead configured for rgmii-id, carrier and the negotiated
> speed return after an interface close/open, but the receive path does not
> work. At 100 Mbit/s no frames were received. At 1000 Mbit/s all 11
> observed frames had CRC errors.
>
> Program the delays again after the existing resume delay. rtl821x_resume()
> handles RTL8211F and RTL8211F-VD, both of which use
> rtl8211f_config_rgmii_delay() during initialization.

This bit is important, so i would of put it earlier. In practice, it
should not matter that the RTL8211F gains the extra RGMII register
rights.

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew