diff options
author | wpaul <wpaul@FreeBSD.org> | 1998-05-31 16:59:39 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1998-05-31 16:59:39 +0000 |
commit | 9ce1b0b0eda67a4a38766f2cb0264718ab313ac6 (patch) | |
tree | 9ecd61f81a158642993a0673dff56335cbe62df2 /sys/pci | |
parent | 9b0682308d43f58b75dc295989e3113d70fd05cf (diff) | |
download | FreeBSD-src-9ce1b0b0eda67a4a38766f2cb0264718ab313ac6.zip FreeBSD-src-9ce1b0b0eda67a4a38766f2cb0264718ab313ac6.tar.gz |
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 <zb9y-smy@asahi-net.or.jp>
Diffstat (limited to 'sys/pci')
-rw-r--r-- | sys/pci/if_tl.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |