From 9ce1b0b0eda67a4a38766f2cb0264718ab313ac6 Mon Sep 17 00:00:00 2001 From: wpaul Date: Sun, 31 May 1998 16:59:39 +0000 Subject: Add a short delay in the read loop in tl_eeprom_getbyte(). On some systems, you have to allow the delay or else you end up misreading some of the bits. Patch provided by: Yoshihiko Someya --- sys/pci/if_tl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/pci') diff --git a/sys/pci/if_tl.c b/sys/pci/if_tl.c index e7a7887..191dbad 100644 --- a/sys/pci/if_tl.c +++ b/sys/pci/if_tl.c @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_tl.c,v 1.6 1998/05/26 23:42:24 wpaul Exp $ + * $Id: if_tl.c,v 1.7 1998/05/29 16:58:46 wpaul Exp $ */ /* @@ -240,7 +240,7 @@ #ifndef lint static char rcsid[] = - "$Id: if_tl.c,v 1.6 1998/05/26 23:42:24 wpaul Exp $"; + "$Id: if_tl.c,v 1.7 1998/05/29 16:58:46 wpaul Exp $"; #endif /* @@ -497,6 +497,7 @@ static u_int8_t tl_eeprom_getbyte(csr, addr, dest) if (DIO_BYTE1_GET(TL_SIO_EDATA)) byte |= i; DIO_BYTE1_CLR(TL_SIO_ECLOK); + DELAY(1); } EEPROM_STOP; -- cgit v1.1