Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/dev/pci Pull up revision 1.26 (requested by itojun ...



details:   https://anonhg.NetBSD.org/src/rev/03c894f59946
branches:  netbsd-1-6
changeset: 529130:03c894f59946
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Oct 02 01:19:49 2002 +0000

description:
Pull up revision 1.26 (requested by itojun in ticket #870):
don't go into D3 state if revision <= 82558_B0.  PR 18011

diffstat:

 sys/dev/pci/if_fxp_pci.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 2fa869099b8b -r 03c894f59946 sys/dev/pci/if_fxp_pci.c
--- a/sys/dev/pci/if_fxp_pci.c  Wed Oct 02 01:14:42 2002 +0000
+++ b/sys/dev/pci/if_fxp_pci.c  Wed Oct 02 01:19:49 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_fxp_pci.c,v 1.22.4.1 2002/06/25 22:07:42 lukem Exp $        */
+/*     $NetBSD: if_fxp_pci.c,v 1.22.4.2 2002/10/02 01:19:49 lukem Exp $        */
 
 /*-
  * Copyright (c) 1997, 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_fxp_pci.c,v 1.22.4.1 2002/06/25 22:07:42 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_fxp_pci.c,v 1.22.4.2 2002/10/02 01:19:49 lukem Exp $");
 
 #include "rnd.h"
 
@@ -480,6 +480,13 @@
 {
        struct fxp_pci_softc *psc = (void *) sc;
 
+       /*
+        * for some 82558_A4 and 82558_B0, entering D3 state makes
+        * media detection disordered.
+        */
+       if (sc->sc_rev <= FXP_REV_82558_B0)
+               return;
+
 #if 0
        printf("%s: going to power state D3\n", sc->sc_dev.dv_xname);
 #endif



Home | Main Index | Thread Index | Old Index