diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2011-04-03 23:17:14 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2011-04-03 23:17:14 +0000 |
commit | 852369d6a2aa06c036160f01c1f734516f6c90c5 (patch) | |
tree | c33fcc46a247aceb89e3e33084f8db5d0cc771bc | |
parent | 8a01737568aadf29ce62b74daf5982a820159a03 (diff) |
pirofti made me look at wd(4) code, which made me sad.
increase the timeout on io from 10s to 45s. ata says we should wait
30, but i am cynical. this gives loongson disks enough time to wake
up on resume.
-rw-r--r-- | sys/dev/ata/ata_wdc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/ata_wdc.c b/sys/dev/ata/ata_wdc.c index f44acc279a5..5b6b7acf731 100644 --- a/sys/dev/ata/ata_wdc.c +++ b/sys/dev/ata/ata_wdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ata_wdc.c,v 1.35 2010/11/06 16:53:15 kettenis Exp $ */ +/* $OpenBSD: ata_wdc.c,v 1.36 2011/04/03 23:17:13 dlg Exp $ */ /* $NetBSD: ata_wdc.c,v 1.21 1999/08/09 09:43:11 bouyer Exp $ */ /* @@ -95,7 +95,7 @@ int wdcdebug_wd_mask = WDCDEBUG_WD_MASK; #define WDCDEBUG_PRINT(args, level) #endif -#define ATA_DELAY 10000 /* 10s for a drive I/O */ +#define ATA_DELAY 45000 /* 45s for a drive I/O */ struct cfdriver wdc_cd = { NULL, "wdc", DV_DULL |