vscphy: Fill in new mii_maxspeed field

It is used to limit the max advertised speed.
The value is read from DT by mii_fdt code.

Obtained from: Semihalf
Sponsored by: Alstom Group
Differential revision: https://reviews.freebsd.org/D32816
This commit is contained in:
Kornel Duleba 2021-11-15 09:53:39 +01:00 committed by Wojciech Macek
parent b38de28a77
commit 89fb4802f9

View file

@ -114,6 +114,7 @@ vscphy_fdt_get_config(struct vscphy_softc *vsc)
vsc->rxdelay = val;
if (OF_getencprop(cfg->phynode, "tx-delay", &val, sizeof(val)) > 0)
vsc->txdelay = val;
vsc->mii_sc.mii_maxspeed = cfg->max_speed;
mii_fdt_free_config(cfg);
}
#endif