Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci In sk_init_yukon(), don't open-code clearing the...



details:   https://anonhg.NetBSD.org/src/rev/b68e8dd44225
branches:  trunk
changeset: 566916:b68e8dd44225
user:      kleink <kleink%NetBSD.org@localhost>
date:      Mon May 24 10:06:59 2004 +0000

description:
In sk_init_yukon(), don't open-code clearing the multicast filter but
go via the normal filter setup path instead.  The old behaviour only
worked ok as long as the init function was exclusively called at attach
time, when there was no configuration to be lost.

>From Christian Weisgerber in private mail.

diffstat:

 sys/dev/pci/if_sk.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (24 lines):

diff -r 62b39c2f7d93 -r b68e8dd44225 sys/dev/pci/if_sk.c
--- a/sys/dev/pci/if_sk.c       Mon May 24 07:20:26 2004 +0000
+++ b/sys/dev/pci/if_sk.c       Mon May 24 10:06:59 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_sk.c,v 1.8 2004/05/07 00:03:39 kleink Exp $ */
+/*     $NetBSD: if_sk.c,v 1.9 2004/05/24 10:06:59 kleink Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -2327,12 +2327,9 @@
                SK_YU_WRITE_2(sc_if, YUKON_SAL2 + i * 4, reg);
        }
 
-       /* clear all Multicast filter hash registers */
+       /* Set multicast filter */
        DPRINTFN(6, ("sk_init_yukon: 11\n"));
-       SK_YU_WRITE_2(sc_if, YUKON_MCAH1, 0);
-       SK_YU_WRITE_2(sc_if, YUKON_MCAH2, 0);
-       SK_YU_WRITE_2(sc_if, YUKON_MCAH3, 0);
-       SK_YU_WRITE_2(sc_if, YUKON_MCAH4, 0);
+       sk_setmulti(sc_if);
 
        /* enable interrupt mask for counter overflows */
        DPRINTFN(6, ("sk_init_yukon: 12\n"));



Home | Main Index | Thread Index | Old Index