diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2006-02-12 13:28:31 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2006-02-12 13:28:31 +0000 |
commit | b9bf1fe59ceaee9cfb772a5961706dc2e1733f03 (patch) | |
tree | 4f5a4e8a2609e2a9cad354aa4d4d5a044f271a30 /sys/dev/pci/if_nfe.c | |
parent | 12a8e7b617060eaa9b76e9d7ae689939e00523ea (diff) |
don't print shared interrupts when debugging is on.
Diffstat (limited to 'sys/dev/pci/if_nfe.c')
-rw-r--r-- | sys/dev/pci/if_nfe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_nfe.c b/sys/dev/pci/if_nfe.c index 9eebdbca5ad..2a94860354c 100644 --- a/sys/dev/pci/if_nfe.c +++ b/sys/dev/pci/if_nfe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nfe.c,v 1.32 2006/02/12 13:25:01 damien Exp $ */ +/* $OpenBSD: if_nfe.c,v 1.33 2006/02/12 13:28:30 damien Exp $ */ /*- * Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr> @@ -420,14 +420,14 @@ nfe_intr(void *arg) r = NFE_READ(sc, NFE_IRQ_STATUS); NFE_WRITE(sc, NFE_IRQ_STATUS, r); - DPRINTFN(5, ("nfe_intr: interrupt register %x\n", r)); - if (r == 0) { /* re-enable interrupts */ NFE_WRITE(sc, NFE_IRQ_MASK, NFE_IRQ_WANTED); return 0; } + DPRINTFN(5, ("nfe_intr: interrupt register %x\n", r)); + if (r & NFE_IRQ_LINK) { NFE_READ(sc, NFE_PHY_STATUS); NFE_WRITE(sc, NFE_PHY_STATUS, 0xf); |