The branch main has been updated by wma:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=89fb4802f9a64a1eba6475c3e467e614b69052a4

commit 89fb4802f9a64a1eba6475c3e467e614b69052a4
Author:     Kornel Duleba <min...@semihalf.com>
AuthorDate: 2021-11-15 08:53:39 +0000
Commit:     Wojciech Macek <w...@freebsd.org>
CommitDate: 2021-11-24 06:40:35 +0000

    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 2566f7f73c16..be90145e6299 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

Reply via email to