From nobody Wed Nov 24 06:41:49 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 215E018ABA22; Wed, 24 Nov 2021 06:41:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HzWd95jhxz4kdM; Wed, 24 Nov 2021 06:41:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A31062507A; Wed, 24 Nov 2021 06:41:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1AO6fnOd037027; Wed, 24 Nov 2021 06:41:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AO6fnM4037026; Wed, 24 Nov 2021 06:41:49 GMT (envelope-from git) Date: Wed, 24 Nov 2021 06:41:49 GMT Message-Id: <202111240641.1AO6fnM4037026@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Wojciech Macek Subject: git: 89fb4802f9a6 - main - vscphy: Fill in new mii_maxspeed field List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wma X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 89fb4802f9a64a1eba6475c3e467e614b69052a4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637736109; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I5mmTgGwcnWAYCifJ4wOrjjlQJQJeb/obyAEAIII/Kg=; b=CZs0DNN/cjpIPF5FwazZSoJTA4APGV+RtPa54DL8weSEso1VN2DOAqEUuMOZU/lwH7xm6t moegZe6aqUUbARMlOl48YQ3do16YnA+ue5rLUbrnip3Gfmhdi/1JdOu+IOJ0k8EcxRtY3r 9GcOKN4wzQoOqNQlxxq6qnW7FtM+6+b2sU02GVLngfJPQvm3C2o9BNafApx1WPyF5NCMdK OZTCkz1HCIDzp/WaNyntSgN2Z5hypvOfm2EOEsnYckdmN/2aCuLOFhs3nAngEfuA3E58Iw xLYIPe+of8jZa2XZ/GZ1uqZssrYqFUK/JKLaTGbeWL4SMb4HG3NvDZO4QcmjSA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637736109; a=rsa-sha256; cv=none; b=Y/5sRB2beoDaQ70ztLWsJVKymsawTVc/jYgFObRYB7YRhpYkgspBn1octJrfWI3Ph8Oje7 0f/bFFTaKGUzL+BXblhGp38Vh1+99AdHgdvOE7g8g0VQfR3+Lj9Tx1M7/zV8LGPOY+M5m7 DXnyf6PuYz3KGeUZI3PJZuhPunO4g3ukYmaIjbiRLj0vWDZ8o02ONUSSYj+qpJ9jDP88FA N2rGvUrAO99Cf0OpHJ1a5oVmO0vLoedDGKxTVeOsW37A4WIyHXMU3yXBPPoW0aGicz3YXN wpB/uXGLcfJJdnRBILXhe8qVHdtyWzmHroKG1DRzL9E6IYdIcscZJkggkKP9HA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by wma: URL: https://cgit.FreeBSD.org/src/commit/?id=89fb4802f9a64a1eba6475c3e467e614b69052a4 commit 89fb4802f9a64a1eba6475c3e467e614b69052a4 Author: Kornel Duleba AuthorDate: 2021-11-15 08:53:39 +0000 Commit: Wojciech Macek 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