From a69db6767cfd34324b39babe46980983b371074b Mon Sep 17 00:00:00 2001 From: patrick Date: Mon, 18 Mar 2024 21:37:44 +0000 Subject: [PATCH] Pass PHY OF node to the MII layer for use by PHY drivers. --- sys/dev/fdt/if_mvpp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/fdt/if_mvpp.c b/sys/dev/fdt/if_mvpp.c index c2881861baa..f3347fa38ed 100644 --- a/sys/dev/fdt/if_mvpp.c +++ b/sys/dev/fdt/if_mvpp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mvpp.c,v 1.51 2023/11/10 15:51:19 bluhm Exp $ */ +/* $OpenBSD: if_mvpp.c,v 1.52 2024/03/18 21:37:44 patrick Exp $ */ /* * Copyright (c) 2008, 2019 Mark Kettenis * Copyright (c) 2017, 2020 Patrick Wildt @@ -1388,6 +1388,7 @@ mvpp2_port_attach(struct device *parent, struct device *self, void *aux) sc->sc_mdio = mii_byphandle(phy); sc->sc_phyloc = OF_getpropint(node, "reg", MII_PHY_ANY); sc->sc_sfp = OF_getpropint(node, "sfp", sc->sc_sfp); + sc->sc_mii.mii_node = node; } if (sc->sc_sfp) -- 2.20.1