From 89fb4802f9a64a1eba6475c3e467e614b69052a4 Mon Sep 17 00:00:00 2001 From: Kornel Duleba Date: Mon, 15 Nov 2021 09:53:39 +0100 Subject: [PATCH] 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 --- sys/dev/mii/vscphy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/mii/vscphy.c b/sys/dev/mii/vscphy.c index 2566f7f73c1..be90145e629 100644 --- a/sys/dev/mii/vscphy.c +++ b/sys/dev/mii/vscphy.c @@ -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