summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorbouyer <bouyer@NetBSD.org>2002-06-01 17:20:13 +0000
committerbouyer <bouyer@NetBSD.org>2002-06-01 17:20:13 +0000
commit208589bfca2a055dddcbb82557d9406265d7bd98 (patch)
treeef8c15129e50ceb12486868aca578a5ad7bf8aae /sys/dev
parent0707a91ae6217b94f16bfa32c3a29f13dce36b6d (diff)
On a Dlink DFE580-TX (DL-1002), attempting to transmit packets while the link
is down cause the chip to create an IE_UpdateStats condition which can't be cleared, causing the driver to enter an interrupt loop. Workaround: mask IE_UpdateStats
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_ste.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ste.c b/sys/dev/pci/if_ste.c
index dfcf8c12960..20438476987 100644
--- a/sys/dev/pci/if_ste.c
+++ b/sys/dev/pci/if_ste.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ste.c,v 1.7 2001/11/13 07:48:44 lukem Exp $ */
+/* $NetBSD: if_ste.c,v 1.8 2002/06/01 17:20:13 bouyer Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ste.c,v 1.7 2001/11/13 07:48:44 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ste.c,v 1.8 2002/06/01 17:20:13 bouyer Exp $");
#include "bpfilter.h"
@@ -1263,8 +1263,19 @@ ste_init(struct ifnet *ifp)
/*
* Initialize the interrupt mask.
*/
+# if 0
sc->sc_IntEnable = IE_HostError | IE_TxComplete | IE_UpdateStats |
IE_TxDMAComplete | IE_RxDMAComplete;
+#else
+ /*
+ * On a Dlink DFE580-TX (DL-1002), attempting to transmit packets
+ * while the link is down cause the chip to create an IE_UpdateStats
+ * condition which can't be cleared, causing the driver to enter
+ * an interrupt loop. workaround: mask IE_UpdateStats
+ */
+ sc->sc_IntEnable = IE_HostError | IE_TxComplete | /*IE_UpdateStats |*/
+ IE_TxDMAComplete | IE_RxDMAComplete;
+#endif
bus_space_write_2(st, sh, STE_IntStatus, 0xffff);
bus_space_write_2(st, sh, STE_IntEnable, sc->sc_IntEnable);