Re: [PATCH net-next] net: renesas: rswitch: cleanup max_speed setting
From: Nikita Yushchenko
Date: Wed Feb 05 2025 - 11:26:21 EST
You should only need max-speed when you have a PHY which can do more
than the MAC.
This is exactly the case.
Unfortunately I don't have the spider schematics nearby, but AFAIU (one of flavours of) the board has
PHYs capable of 5G but connected over SGMII. When two such boards are connected to each other, on
mainline kernel auto-negotiation takes noticeably longer than with the Renesas BSP kernel.
Also, phylink handles this a lot better than phylib. So you might want
to change rswitch to phylink, especially if you have link speeds > 1G.
The reverse switch happened in commit c16a5033f77b ("net: renesas: rswitch: Convert to phy_device").
I did not check the tech details of that, but decided not to touch it.
Nikita