Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Fix previous. Pass phy_id correctly.



details:   https://anonhg.NetBSD.org/src/rev/98c02b95c36e
branches:  trunk
changeset: 449445:98c02b95c36e
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Mar 07 14:02:16 2019 +0000

description:
Fix previous. Pass phy_id correctly.

diffstat:

 sys/dev/ic/dwc_gmac.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r acb3bcec87be -r 98c02b95c36e sys/dev/ic/dwc_gmac.c
--- a/sys/dev/ic/dwc_gmac.c     Thu Mar 07 14:00:25 2019 +0000
+++ b/sys/dev/ic/dwc_gmac.c     Thu Mar 07 14:02:16 2019 +0000
@@ -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 @@
         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)) {



Home | Main Index | Thread Index | Old Index