mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
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:
parent
b38de28a77
commit
89fb4802f9
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue