Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii If pnaphy attaches, make sure the mii_flags has ...



details:   https://anonhg.NetBSD.org/src/rev/d13974e59797
branches:  trunk
changeset: 538157:d13974e59797
user:      fair <fair%NetBSD.org@localhost>
date:      Sun Oct 13 06:28:01 2002 +0000

description:
If pnaphy attaches, make sure the mii_flags has MIIF_IS_HPNA in it.

diffstat:

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

diffs (27 lines):

diff -r db737957631f -r d13974e59797 sys/dev/mii/pnaphy.c
--- a/sys/dev/mii/pnaphy.c      Sun Oct 13 04:37:03 2002 +0000
+++ b/sys/dev/mii/pnaphy.c      Sun Oct 13 06:28:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pnaphy.c,v 1.8 2002/10/02 16:34:20 thorpej Exp $       */
+/*     $NetBSD: pnaphy.c,v 1.9 2002/10/13 06:28:01 fair Exp $  */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pnaphy.c,v 1.8 2002/10/02 16:34:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pnaphy.c,v 1.9 2002/10/13 06:28:01 fair Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -115,7 +115,7 @@
        sc->mii_phy = ma->mii_phyno;
        sc->mii_funcs = &pnaphy_funcs;
        sc->mii_pdata = mii;
-       sc->mii_flags = ma->mii_flags;
+       sc->mii_flags = ma->mii_flags | MIIF_IS_HPNA; /* force HomePNA */
        sc->mii_anegticks = 5;
 
        PHY_RESET(sc);



Home | Main Index | Thread Index | Old Index