From 5bdaf1e43b8c085c5956bd07c13d5d25e4492d3b Mon Sep 17 00:00:00 2001 From: pb Date: Thu, 9 Nov 2000 17:25:49 +0000 Subject: [PATCH] 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(+) 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);