From f921eab8357c57c363d2b250ac9350361a585e9b Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 30 Dec 2003 04:43:45 -0800 Subject: [PATCH] Make IDE DRQ and READY timeouts longer The old 50ms / 30ms timeouts apparently weren't sufficient with some disks. --- include/linux/ide.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/ide.h b/include/linux/ide.h index 0a46bf5c4270f..1d481b7753e1b 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 */ -- 2.53.0