From b9bf1fe59ceaee9cfb772a5961706dc2e1733f03 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Sun, 12 Feb 2006 13:28:31 +0000 Subject: don't print shared interrupts when debugging is on. --- sys/dev/pci/if_nfe.c | 6 +++--- 1 file 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 @@ -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); -- cgit v1.2.3