summaryrefslogtreecommitdiff
path: root/sys/dev/re
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2015-04-09 21:35:44 +0000
committerMarius Strobl <marius@FreeBSD.org>2015-04-09 21:35:44 +0000
commit0f55f9d67b1b3fe607224d66b843d1d542045ebb (patch)
tree5f095ef38c6fc931af0e567ff5de90105eb2059c /sys/dev/re
parente4474f161ba6736ce15e8d82b96f8c363f092528 (diff)
Notes
Diffstat (limited to 'sys/dev/re')
-rw-r--r--sys/dev/re/if_re.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c
index e27a81276df1..a67d367cfdf9 100644
--- a/sys/dev/re/if_re.c
+++ b/sys/dev/re/if_re.c
@@ -3196,11 +3196,6 @@ re_init_locked(struct rl_softc *sc)
~0x00080000);
/*
- * Enable transmit and receive.
- */
- CSR_WRITE_1(sc, RL_COMMAND, RL_CMD_TX_ENB|RL_CMD_RX_ENB);
-
- /*
* Set the initial TX configuration.
*/
if (sc->rl_testmode) {
@@ -3226,6 +3221,11 @@ re_init_locked(struct rl_softc *sc)
CSR_WRITE_2(sc, RL_INTRMOD, 0x5100);
}
+ /*
+ * Enable transmit and receive.
+ */
+ CSR_WRITE_1(sc, RL_COMMAND, RL_CMD_TX_ENB | RL_CMD_RX_ENB);
+
#ifdef DEVICE_POLLING
/*
* Disable interrupts if we are polling.
@@ -3249,10 +3249,6 @@ re_init_locked(struct rl_softc *sc)
/* Start RX/TX process. */
CSR_WRITE_4(sc, RL_MISSEDPKT, 0);
-#ifdef notdef
- /* Enable receiver and transmitter. */
- CSR_WRITE_1(sc, RL_COMMAND, RL_CMD_TX_ENB|RL_CMD_RX_ENB);
-#endif
/*
* Initialize the timer interrupt register so that