Module Name: src Committed By: snj Date: Mon Nov 26 17:24:51 UTC 2018
Modified Files: src/sys/dev/pci [netbsd-8]: if_wm.c Log Message: Pull up following revision(s) (requested by msaitoh in ticket #1108): sys/dev/pci/if_wm.c: revision 1.599 - Fix a bug that i82578 PHY can't detect correctly. - Print PHY OUI and model number if a PHY's can't be identified. To generate a diff of this commit: cvs rdiff -u -r1.508.4.25 -r1.508.4.26 src/sys/dev/pci/if_wm.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_wm.c diff -u src/sys/dev/pci/if_wm.c:1.508.4.25 src/sys/dev/pci/if_wm.c:1.508.4.26 --- src/sys/dev/pci/if_wm.c:1.508.4.25 Thu Nov 8 12:09:18 2018 +++ src/sys/dev/pci/if_wm.c Mon Nov 26 17:24:51 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: if_wm.c,v 1.508.4.25 2018/11/08 12:09:18 martin Exp $ */ +/* $NetBSD: if_wm.c,v 1.508.4.26 2018/11/26 17:24:51 snj Exp $ */ /* * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc. @@ -83,7 +83,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.508.4.25 2018/11/08 12:09:18 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.508.4.26 2018/11/26 17:24:51 snj Exp $"); #ifdef _KERNEL_OPT #include "opt_net_mpsafe.h" @@ -9534,7 +9534,7 @@ wm_gmii_setup_phytype(struct wm_softc *s } else { /* It's not the first call. Use PHY OUI and model */ switch (phy_oui) { - case MII_OUI_ATHEROS: /* XXX ??? */ + case MII_OUI_ATTANSIC: /* XXX ??? */ switch (phy_model) { case 0x0004: /* XXX */ new_phytype = WMPHY_82578; @@ -9611,8 +9611,9 @@ wm_gmii_setup_phytype(struct wm_softc *s break; } if (new_phytype == WMPHY_UNKNOWN) - aprint_verbose_dev(dev, "%s: unknown PHY model\n", - __func__); + aprint_verbose_dev(dev, + "%s: unknown PHY model. OUI=%06x, model=%04x\n", + __func__, phy_oui, phy_model); if ((sc->sc_phytype != WMPHY_UNKNOWN) && (sc->sc_phytype != new_phytype )) {