Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ata Bump WDCC_IDENTIFY timeout to 3 seconds, as requ...



details:   https://anonhg.NetBSD.org/src/rev/b498263f8af6
branches:  trunk
changeset: 542402:b498263f8af6
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Mon Jan 27 21:27:52 2003 +0000

description:
Bump WDCC_IDENTIFY timeout to 3 seconds, as required by some drives.
Reported by Karl Janmar <karlj%mdstud.chalmers.se@localhost> on tech-kern.

diffstat:

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

diffs (27 lines):

diff -r edc3ccd15e65 -r b498263f8af6 sys/dev/ata/ata.c
--- a/sys/dev/ata/ata.c Mon Jan 27 21:15:55 2003 +0000
+++ b/sys/dev/ata/ata.c Mon Jan 27 21:27:52 2003 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: ata.c,v 1.17 2002/04/09 21:17:53 bouyer Exp $      */
+/*      $NetBSD: ata.c,v 1.18 2003/01/27 21:27:52 bouyer Exp $      */
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.  All rights reserved.
  *
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.17 2002/04/09 21:17:53 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.18 2003/01/27 21:27:52 bouyer Exp $");
 
 #ifndef WDCDEBUG
 #define WDCDEBUG
@@ -88,7 +88,7 @@
                wdc_c.r_command = WDCC_IDENTIFY;
                wdc_c.r_st_bmask = WDCS_DRDY;
                wdc_c.r_st_pmask = WDCS_DRQ;
-               wdc_c.timeout = 1000; /* 1s */
+               wdc_c.timeout = 3000; /* 3s */
        } else if (drvp->drive_flags & DRIVE_ATAPI) {
                wdc_c.r_command = ATAPI_IDENTIFY_DEVICE;
                wdc_c.r_st_bmask = 0;



Home | Main Index | Thread Index | Old Index