Module Name: src Committed By: msaitoh Date: Thu Mar 7 14:02:16 UTC 2019
Modified Files: src/sys/dev/ic: dwc_gmac.c Log Message: Fix previous. Pass phy_id correctly. To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/sys/dev/ic/dwc_gmac.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/ic/dwc_gmac.c diff -u src/sys/dev/ic/dwc_gmac.c:1.57 src/sys/dev/ic/dwc_gmac.c:1.58 --- src/sys/dev/ic/dwc_gmac.c:1.57 Sat Feb 23 17:18:07 2019 +++ src/sys/dev/ic/dwc_gmac.c Thu Mar 7 14:02:16 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: dwc_gmac.c,v 1.57 2019/02/23 17:18:07 martin Exp $ */ +/* $NetBSD: dwc_gmac.c,v 1.58 2019/03/07 14:02:16 msaitoh Exp $ */ /*- * Copyright (c) 2013, 2014 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.57 2019/02/23 17:18:07 martin Exp $"); +__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.58 2019/03/07 14:02:16 msaitoh Exp $"); /* #define DWC_GMAC_DEBUG 1 */ @@ -306,7 +306,7 @@ dwc_gmac_attach(struct dwc_gmac_softc *s mii->mii_readreg = dwc_gmac_miibus_read_reg; mii->mii_writereg = dwc_gmac_miibus_write_reg; mii->mii_statchg = dwc_gmac_miibus_statchg; - mii_attach(sc->sc_dev, mii, phy_id, MII_PHY_ANY, MII_OFFSET_ANY, + mii_attach(sc->sc_dev, mii, 0xffffffff, phy_id, MII_OFFSET_ANY, MIIF_DOPAUSE); if (LIST_EMPTY(&mii->mii_phys)) {