diff options
| author | jakllsch <jakllsch@NetBSD.org> | 2012-07-22 18:37:31 +0000 |
|---|---|---|
| committer | jakllsch <jakllsch@NetBSD.org> | 2012-07-22 18:37:31 +0000 |
| commit | 8b2470b2c448cd37d1f4294c2fd16ca33d29cede (patch) | |
| tree | d8efe3608df46e414d5b3b6d343574766113d98c /sys/dev/ata | |
| parent | 5e2e384e1000834d0fd3144a92157a9726850446 (diff) | |
ATA-6 and ACS-2 drafts both say the flush cache commands may take longer than
30 seconds to complete. For now assume 5 minutes will always be enough.
Diffstat (limited to 'sys/dev/ata')
| -rw-r--r-- | sys/dev/ata/wd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c index d2ee58a22ab..6747a1e8477 100644 --- a/sys/dev/ata/wd.c +++ b/sys/dev/ata/wd.c @@ -1,4 +1,4 @@ -/* $NetBSD: wd.c,v 1.395 2012/07/15 10:55:29 dsl Exp $ */ +/* $NetBSD: wd.c,v 1.396 2012/07/22 18:37:31 jakllsch Exp $ */ /* * Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved. @@ -54,7 +54,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.395 2012/07/15 10:55:29 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.396 2012/07/22 18:37:31 jakllsch Exp $"); #include "opt_ata.h" @@ -1913,7 +1913,7 @@ wd_flushcache(struct wd_softc *wd, int flags) ata_c.r_st_bmask = WDCS_DRDY; ata_c.r_st_pmask = WDCS_DRDY; ata_c.flags = flags; - ata_c.timeout = 30000; /* 30s timeout */ + ata_c.timeout = 300000; /* 5m timeout */ if (wd->atabus->ata_exec_command(wd->drvp, &ata_c) != ATACMD_COMPLETE) { aprint_error_dev(wd->sc_dev, "flush cache command didn't complete\n"); |
