Module Name:    src
Committed By:   jdc
Date:           Mon Jan 11 09:30:42 UTC 2010

Modified Files:
        src/sys/dev/ic: gem.c

Log Message:
Mask out (disable) gem interrupts on detach.


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/dev/ic/gem.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/gem.c
diff -u src/sys/dev/ic/gem.c:1.90 src/sys/dev/ic/gem.c:1.91
--- src/sys/dev/ic/gem.c:1.90	Fri Jan  8 20:02:39 2010
+++ src/sys/dev/ic/gem.c	Mon Jan 11 09:30:41 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: gem.c,v 1.90 2010/01/08 20:02:39 dyoung Exp $ */
+/*	$NetBSD: gem.c,v 1.91 2010/01/11 09:30:41 jdc Exp $ */
 
 /*
  *
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.90 2010/01/08 20:02:39 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.91 2010/01/11 09:30:41 jdc Exp $");
 
 #include "opt_inet.h"
 #include "bpfilter.h"
@@ -152,6 +152,8 @@
 {
 	int i;
 	struct ifnet *ifp = &sc->sc_ethercom.ec_if;
+	bus_space_tag_t t = sc->sc_bustag;
+	bus_space_handle_t h = sc->sc_h1;
 
 	/*
 	 * Free any resources we've allocated during the attach.
@@ -161,6 +163,7 @@
 	case GEM_ATT_BACKEND_2:
 	case GEM_ATT_BACKEND_1:
 	case GEM_ATT_FINISHED:
+		bus_space_write_4(t, h, GEM_INTMASK, ~(uint32_t)0);
 		gem_stop(&sc->sc_ethercom.ec_if, 1);
 
 #ifdef GEM_COUNTERS

Reply via email to