Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/dev/ic Pull up revision 1.115 (requested by bouyer ...



details:   https://anonhg.NetBSD.org/src/rev/92e27960ce3b
branches:  netbsd-1-6
changeset: 527890:92e27960ce3b
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Jun 13 02:35:20 2002 +0000

description:
Pull up revision 1.115 (requested by bouyer in ticket #256):
Bump delay() between reset and IDENTIFY from 100 to 5000. Some ATAPI devices
wedge when talking to them too soon, and incorrectly react to WDC_RESET.
Close PR kern/17208 by Paul Goyette.

diffstat:

 sys/dev/ic/wdc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 98853c1341b4 -r 92e27960ce3b sys/dev/ic/wdc.c
--- a/sys/dev/ic/wdc.c  Thu Jun 13 02:34:40 2002 +0000
+++ b/sys/dev/ic/wdc.c  Thu Jun 13 02:35:20 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc.c,v 1.114 2002/04/09 21:17:54 bouyer Exp $ */
+/*     $NetBSD: wdc.c,v 1.114.4.1 2002/06/13 02:35:20 lukem Exp $ */
 
 
 /*
@@ -72,7 +72,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.114 2002/04/09 21:17:54 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.114.4.1 2002/06/13 02:35:20 lukem Exp $");
 
 #ifndef WDCDEBUG
 #define WDCDEBUG
@@ -357,7 +357,7 @@
                 * Wait a bit, some devices are weird just after a reset.
                 * Then issue a IDENTIFY command, to try to detect slave ghost
                 */
-               delay(100);
+               delay(5000);
                error = ata_get_params(&chp->ch_drive[i], AT_POLL, &params);
                if (error != CMD_OK) {
                        delay(1000000);



Home | Main Index | Thread Index | Old Index