From: patrick Date: Thu, 21 Mar 2024 23:12:33 +0000 (+0000) Subject: Never bindings use the phy-handle property instead of the phy property. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c5c83bc1a1a290be561dd4120de5a698ce5e2252;p=openbsd Never bindings use the phy-handle property instead of the phy property. ok kettenis@ --- diff --git a/sys/dev/fdt/if_mvneta.c b/sys/dev/fdt/if_mvneta.c index c602de56a45..dbfb10cb8b4 100644 --- a/sys/dev/fdt/if_mvneta.c +++ b/sys/dev/fdt/if_mvneta.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mvneta.c,v 1.31 2023/11/10 15:51:19 bluhm Exp $ */ +/* $OpenBSD: if_mvneta.c,v 1.32 2024/03/21 23:12:33 patrick Exp $ */ /* $NetBSD: if_mvneta.c,v 1.41 2015/04/15 10:15:40 hsuenaga Exp $ */ /* * Copyright (c) 2007, 2008, 2013 KIYOHARA Takashi @@ -502,7 +502,9 @@ mvneta_attach(struct device *parent, struct device *self, void *aux) } if (!sc->sc_fixed_link) { - sc->sc_phy = OF_getpropint(faa->fa_node, "phy", 0); + sc->sc_phy = OF_getpropint(faa->fa_node, "phy-handle", 0); + if (!sc->sc_phy) + sc->sc_phy = OF_getpropint(faa->fa_node, "phy", 0); node = OF_getnodebyphandle(sc->sc_phy); if (!node) { printf(": cannot find phy in fdt\n");