Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Don't set VR_EECSR_LOAD before reading the MAC a...



details:   https://anonhg.NetBSD.org/src/rev/e5853f2591d2
branches:  trunk
changeset: 555340:e5853f2591d2
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Nov 14 22:33:29 2003 +0000

description:
Don't set VR_EECSR_LOAD before reading the MAC address on the VT6102 either.

diffstat:

 sys/dev/pci/if_vr.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r bcfbb3c58ea2 -r e5853f2591d2 sys/dev/pci/if_vr.c
--- a/sys/dev/pci/if_vr.c       Fri Nov 14 22:32:44 2003 +0000
+++ b/sys/dev/pci/if_vr.c       Fri Nov 14 22:33:29 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vr.c,v 1.66 2003/11/13 22:29:09 scw Exp $   */
+/*     $NetBSD: if_vr.c,v 1.67 2003/11/14 22:33:29 jmcneill Exp $      */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -104,7 +104,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vr.c,v 1.66 2003/11/13 22:29:09 scw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vr.c,v 1.67 2003/11/14 22:33:29 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1574,7 +1574,8 @@
         *         causes) I'm going to retain the old behaviour for the
         *         other parts.
         */
-       if (PCI_PRODUCT(pa->pa_id) != PCI_PRODUCT_VIATECH_VT6105) {
+       if (PCI_PRODUCT(pa->pa_id) != PCI_PRODUCT_VIATECH_VT6105 &&
+           PCI_PRODUCT(pa->pa_id) != PCI_PRODUCT_VIATECH_VT6102) {
                VR_SETBIT(sc, VR_EECSR, VR_EECSR_LOAD);
                DELAY(200);
        }



Home | Main Index | Thread Index | Old Index