From 256de9e9ec842c0ba5d57f9df0a19fa1f6946d07 Mon Sep 17 00:00:00 2001 From: Pierre Beyssac Date: Thu, 9 Nov 2000 17:25:49 +0000 Subject: 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 --- sys/dev/tx/if_tx.c | 1 + sys/pci/if_tx.c | 1 + 2 files changed, 2 insertions(+) (limited to 'sys') diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c index 8c5a8dfccfee..008061141f95 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); diff --git a/sys/pci/if_tx.c b/sys/pci/if_tx.c index 8c5a8dfccfee..008061141f95 100644 --- a/sys/pci/if_tx.c +++ b/sys/pci/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); -- cgit v1.3