aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/dc/if_dc.c
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2001-02-18 07:21:28 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2001-02-18 07:21:28 +0000
commitd88a358c86cc5377237a923e56b3f450d643bd1f (patch)
treeea9653edc5bde4242d8f09474aeeafb2dc6c4d08 /sys/dev/dc/if_dc.c
parentc1b843c774dd94b27637b707e60b452ab0cd4159 (diff)
Notes
Diffstat (limited to 'sys/dev/dc/if_dc.c')
-rw-r--r--sys/dev/dc/if_dc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c
index 7e57daeac0d6a..9cb794f0330b4 100644
--- a/sys/dev/dc/if_dc.c
+++ b/sys/dev/dc/if_dc.c
@@ -2716,7 +2716,10 @@ static void dc_intr(arg)
DC_LOCK(sc);
ifp = &sc->arpcom.ac_if;
- /* Supress unwanted interrupts */
+ if ( (CSR_READ_4(sc, DC_ISR) & DC_INTRS) == 0)
+ return ;
+
+ /* Suppress unwanted interrupts */
if (!(ifp->if_flags & IFF_UP)) {
if (CSR_READ_4(sc, DC_ISR) & DC_INTRS)
dc_stop(sc);