Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.osdl.org>2003-12-30 04:43:45 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2003-12-30 04:43:45 -0800
commitf921eab8357c57c363d2b250ac9350361a585e9b (patch)
tree133db212c7cec374625d8d24f9d32865a502c333
parentbe907e4960755592d7960dc0bfb072a9431e5e1c (diff)
Make IDE DRQ and READY timeouts longer
The old 50ms / 30ms timeouts apparently weren't sufficient with some disks.
-rw-r--r--include/linux/ide.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 0a46bf5c4270..1d481b7753e1 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -246,11 +246,11 @@ typedef unsigned char byte; /* used everywhere */
/*
* Timeouts for various operations:
*/
-#define WAIT_DRQ (5*HZ/100) /* 50msec - spec allows up to 20ms */
+#define WAIT_DRQ (HZ/10) /* 100msec - spec allows up to 20ms */
#if defined(CONFIG_APM) || defined(CONFIG_APM_MODULE)
#define WAIT_READY (5*HZ) /* 5sec - some laptops are very slow */
#else
-#define WAIT_READY (3*HZ/100) /* 30msec - should be instantaneous */
+#define WAIT_READY (HZ/10) /* 100msec - should be instantaneous */
#endif /* CONFIG_APM || CONFIG_APM_MODULE */
#define WAIT_PIDENTIFY (10*HZ) /* 10sec - should be less than 3ms (?), if all ATAPI CD is closed at boot */
#define WAIT_WORSTCASE (30*HZ) /* 30sec - worst case when spinning up */