summaryrefslogtreecommitdiffstats
path: root/sys/dev/tx/if_tx.c
diff options
context:
space:
mode:
authorpb <pb@FreeBSD.org>2000-11-09 17:25:49 +0000
committerpb <pb@FreeBSD.org>2000-11-09 17:25:49 +0000
commit5bdaf1e43b8c085c5956bd07c13d5d25e4492d3b (patch)
tree5ccb5567720aa4cf7b1f47f2cb00f1d3f0ae4dac /sys/dev/tx/if_tx.c
parent82e691e49261ab45c6c0a84b5cc62d2488fba821 (diff)
downloadFreeBSD-src-5bdaf1e43b8c085c5956bd07c13d5d25e4492d3b.zip
FreeBSD-src-5bdaf1e43b8c085c5956bd07c13d5d25e4492d3b.tar.gz
Add missing delay after card reset.
This fixes randoms lockups when probing the card at boot time, when more than 1 similar card is found in the machine. Reviewed by: semenu
Diffstat (limited to 'sys/dev/tx/if_tx.c')
-rw-r--r--sys/dev/tx/if_tx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c
index 8c5a8df..0080611 100644
--- a/sys/dev/tx/if_tx.c
+++ b/sys/dev/tx/if_tx.c
@@ -768,6 +768,7 @@ epic_common_attach(sc)
/* Bring the chip out of low-power mode. */
CSR_WRITE_4( sc, GENCTL, GENCTL_SOFT_RESET);
+ DELAY(500);
/* Workaround for Application Note 7-15 */
for (i=0; i<16; i++) CSR_WRITE_4(sc, TEST1, TEST1_CLOCK_TEST);
OpenPOWER on IntegriCloud