summaryrefslogtreecommitdiff
path: root/sys/dev/fdt/if_mvpp.c
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2024-03-18 21:37:45 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2024-03-18 21:37:45 +0000
commit1c7f82afab75bd64a8d23d2444b3d0d759321698 (patch)
tree952281ae74dee12639b77b43979dc3d4a0939507 /sys/dev/fdt/if_mvpp.c
parentf0386d0d4736acf8ee94b2de12a55d010c37eb90 (diff)
Pass PHY OF node to the MII layer for use by PHY drivers.
Diffstat (limited to 'sys/dev/fdt/if_mvpp.c')
-rw-r--r--sys/dev/fdt/if_mvpp.c3
1 files changed, 2 insertions, 1 deletions
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 <kettenis@openbsd.org>
* Copyright (c) 2017, 2020 Patrick Wildt <patrick@blueri.se>
@@ -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)