[PATCH] net: fec: phy: Don't advertise Gbit on (R)MII
Fabio Estevam
festevam at gmail.com
Tue Dec 17 11:56:27 CET 2024
On Thu, Dec 12, 2024 at 2:36 PM A. Sverdlin
<alexander.sverdlin at siemens.com> wrote:
>
> From: Alexander Sverdlin <alexander.sverdlin at siemens.com>
>
> Currently if a gigabit-capable PHY is connected to FEC via RMII or MII, it
> will advertise 1000FULL and 1000HALF to a link partner.
>
> Different problems may arise here:
> - usually with (R)MII between MAC and PHY the PHY's connection to magnetics
> would have only 2 pairs routed as well, otherwise a PHY can negotiate 1000
> speed and there will be no traffic possible;
> - but even if there is no way to negotiate 1000 speed in HW (only 2 signal
> pairs routed), it may take a lot of time for PHY to figure this out; in
> case of AD1300 it takes 17-20 seconds, which is waay longer than default
> 4s PHY_ANEG_TIMEOUT.
>
> Use phy_set_supported() in such cases to disable gigabit advertised
> options.
>
> Signed-off-by: Alexander Sverdlin <alexander.sverdlin at siemens.com>
Applied to u-boot-imx/next, thanks.
More information about the U-Boot
mailing list