]>
Commit | Line | Data |
---|---|---|
00e5a55c BS |
1 | From: Greg Kroah-Hartman <gregkh@suse.de> |
2 | Subject: USB: change default delay time for usb-storage devices | |
3 | Patch-mainline: no | |
4 | ||
5 | This reduces the amount of time someone has to wait for a usb-storage | |
6 | device to be usable from 5 seconds to 1 second. Some very old and buggy | |
7 | devices might still need the longer timeout, so they can change this | |
8 | with the sysfs option. | |
9 | ||
10 | Change made at the request of the desktop developers who were tired of | |
11 | us taking longer than Windows for no good reason. | |
12 | ||
13 | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> | |
14 | ||
15 | --- | |
16 | drivers/usb/storage/usb.c | 2 +- | |
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
18 | ||
19 | --- a/drivers/usb/storage/usb.c | |
20 | +++ b/drivers/usb/storage/usb.c | |
21 | @@ -109,7 +109,7 @@ MODULE_AUTHOR("Matthew Dharm <mdharm-usb | |
22 | MODULE_DESCRIPTION("USB Mass Storage driver for Linux"); | |
23 | MODULE_LICENSE("GPL"); | |
24 | ||
25 | -static unsigned int delay_use = 5; | |
26 | +static unsigned int delay_use = 1; | |
27 | module_param(delay_use, uint, S_IRUGO | S_IWUSR); | |
28 | MODULE_PARM_DESC(delay_use, "seconds to delay before using a new device"); | |
29 |