summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2015-01-20 04:33:07 +0000
committerBrad Smith <brad@cvs.openbsd.org>2015-01-20 04:33:07 +0000
commit55430b4997b58b73690f5c5c45b12c0eab8d2ef8 (patch)
tree65d8ec2f8625bd8cf73f944c56869836033ea27c /sys/dev
parent07124755bb93e2b3b17cda3975c02e18273e20f5 (diff)
Remove use of the link change interrupt handling, not all controllers
support this interrupt. Link state changes are noticed via the PHY status change callback or via the timeout for re_tick(). From FreeBSD
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/re.c8
-rw-r--r--sys/dev/ic/rtl81x9reg.h9
2 files changed, 5 insertions, 12 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c
index f7adfa4c54c..b296281a9e1 100644
--- a/sys/dev/ic/re.c
+++ b/sys/dev/ic/re.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: re.c,v 1.169 2015/01/20 04:23:33 brad Exp $ */
+/* $OpenBSD: re.c,v 1.170 2015/01/20 04:33:06 brad Exp $ */
/* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */
/*
* Copyright (c) 1997, 1998-2003
@@ -1562,12 +1562,6 @@ re_intr(void *arg)
re_init(ifp);
claimed = 1;
}
-
- if (status & RL_ISR_LINKCHG) {
- timeout_del(&sc->timer_handle);
- re_tick(sc);
- claimed = 1;
- }
}
if (sc->rl_imtype == RL_IMTYPE_SIM) {
diff --git a/sys/dev/ic/rtl81x9reg.h b/sys/dev/ic/rtl81x9reg.h
index dba1ad606d6..c9cc6cb099b 100644
--- a/sys/dev/ic/rtl81x9reg.h
+++ b/sys/dev/ic/rtl81x9reg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtl81x9reg.h,v 1.89 2015/01/08 00:49:18 brad Exp $ */
+/* $OpenBSD: rtl81x9reg.h,v 1.90 2015/01/20 04:33:06 brad Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -264,12 +264,11 @@
#define RL_INTRS_CPLUS \
(RL_ISR_RX_OK|RL_ISR_RX_ERR|RL_ISR_TX_ERR| \
- RL_ISR_RX_OVERRUN|RL_ISR_FIFO_OFLOW|RL_ISR_LINKCHG| \
+ RL_ISR_RX_OVERRUN|RL_ISR_FIFO_OFLOW| \
RL_ISR_SYSTEM_ERR|RL_ISR_TX_OK)
-#define RL_INTRS_TIMER \
- (RL_ISR_RX_ERR|RL_ISR_TX_ERR| \
- RL_ISR_LINKCHG|RL_ISR_SYSTEM_ERR| \
+#define RL_INTRS_TIMER \
+ (RL_ISR_RX_ERR|RL_ISR_TX_ERR|RL_ISR_SYSTEM_ERR| \
RL_ISR_TIMEOUT_EXPIRED)
/*