summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2000-01-09 21:12:59 +0000
committerwpaul <wpaul@FreeBSD.org>2000-01-09 21:12:59 +0000
commitfe42017b7b8d828d2873029e711cac80e5026145 (patch)
treef00cf89914929efc8b3bab70f8dff258dff116ec
parent2ffb21198ce22e7d88ac090e89fa06b46d4135b8 (diff)
downloadFreeBSD-src-fe42017b7b8d828d2873029e711cac80e5026145.zip
FreeBSD-src-fe42017b7b8d828d2873029e711cac80e5026145.tar.gz
Close PR# 15986: issue an RX reset command when initializing the interface,
but only for those cards that don't use miibus (i.e. all the 10mbps only cards, and the 100baseFX card). PR: kern/15986
-rw-r--r--sys/pci/if_xl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c
index a48823c..0525e00 100644
--- a/sys/pci/if_xl.c
+++ b/sys/pci/if_xl.c
@@ -2426,6 +2426,10 @@ static void xl_init(xsc)
*/
xl_stop(sc);
+ if (sc->xl_miibus == NULL) {
+ CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_RX_RESET);
+ xl_wait(sc);
+ }
CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_TX_RESET);
xl_wait(sc);
DELAY(10000);
OpenPOWER on IntegriCloud