summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2009-11-09 14:32:42 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2009-11-09 14:32:42 +0000
commitb3f28475b4cd787de880ac2ee00b9467fdf5eece (patch)
treecc1fe04360f50e2b0c6b6f9cd61db381e90f03d0 /sys/dev/pci
parentc5c1489c59403667d8dfe0805b5632c2154358eb (diff)
Link state change interrupt was not generated due to a missing bit in
the MAC event register. fix from atte dot peltomaki at iki dot fi tested by me on 5708 and 5709
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_bnx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_bnx.c b/sys/dev/pci/if_bnx.c
index 06fc5dbe256..dab3617de42 100644
--- a/sys/dev/pci/if_bnx.c
+++ b/sys/dev/pci/if_bnx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bnx.c,v 1.84 2009/08/13 14:24:47 jasper Exp $ */
+/* $OpenBSD: if_bnx.c,v 1.85 2009/11/09 14:32:41 dlg Exp $ */
/*-
* Copyright (c) 2006 Broadcom Corporation
@@ -3460,6 +3460,7 @@ bnx_blockinit(struct bnx_softc *sc)
/* Set up link change interrupt generation. */
REG_WR(sc, BNX_EMAC_ATTENTION_ENA, BNX_EMAC_ATTENTION_ENA_LINK);
+ REG_WR(sc, BNX_HC_ATTN_BITS_ENABLE, STATUS_ATTN_BITS_LINK_STATE);
/* Program the physical address of the status block. */
REG_WR(sc, BNX_HC_STATUS_ADDR_L, (u_int32_t)(sc->status_block_paddr));