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 timeout to 10s only for ATAPI devices, 1s i...
details: https://anonhg.NetBSD.org/src/rev/3fcbe7fb074c
branches: trunk
changeset: 471922:3fcbe7fb074c
user: bouyer <bouyer%NetBSD.org@localhost>
date: Thu Apr 15 09:41:09 1999 +0000
description:
Bump timeout to 10s only for ATAPI devices, 1s is fine for IDE drives once
they are ready.
diffstat:
sys/dev/ata/ata.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 86b98364ddbc -r 3fcbe7fb074c sys/dev/ata/ata.c
--- a/sys/dev/ata/ata.c Thu Apr 15 09:15:29 1999 +0000
+++ b/sys/dev/ata/ata.c Thu Apr 15 09:41:09 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ata.c,v 1.8 1999/04/14 22:23:15 jonathan Exp $ */
+/* $NetBSD: ata.c,v 1.9 1999/04/15 09:41:09 bouyer Exp $ */
/*
* Copyright (c) 1998 Manuel Bouyer. All rights reserved.
*
@@ -81,15 +81,16 @@
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 */
} else if (drvp->drive_flags & DRIVE_ATAPI) {
wdc_c.r_command = ATAPI_IDENTIFY_DEVICE;
wdc_c.r_st_bmask = 0;
wdc_c.r_st_pmask = WDCS_DRQ;
+ wdc_c.timeout = 10000; /* 10s */
} else {
return CMD_ERR;
}
wdc_c.flags = AT_READ | flags;
- wdc_c.timeout = 10000; /* 10s */
wdc_c.data = tb;
wdc_c.bcount = DEV_BSIZE;
if (wdc_exec_command(drvp, &wdc_c) != WDC_COMPLETE)
Home |
Main Index |
Thread Index |
Old Index