Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Bump delay() between reset and IDENTIFY from 100 ...



details:   https://anonhg.NetBSD.org/src/rev/d7273b20b26b
branches:  trunk
changeset: 532665:d7273b20b26b
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Wed Jun 12 09:55:47 2002 +0000

description:
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 0b6029280165 -r d7273b20b26b sys/dev/ic/wdc.c
--- a/sys/dev/ic/wdc.c  Wed Jun 12 09:21:40 2002 +0000
+++ b/sys/dev/ic/wdc.c  Wed Jun 12 09:55:47 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.115 2002/06/12 09:55:47 bouyer 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.115 2002/06/12 09:55:47 bouyer 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