]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.31/patches.suse/usb-storage-disable-delay.patch
Move xen patchset to new version's subdir.
[ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.suse / usb-storage-disable-delay.patch
CommitLineData
00e5a55c
BS
1From: Greg Kroah-Hartman <gregkh@suse.de>
2Subject: USB: change default delay time for usb-storage devices
3Patch-mainline: no
4
5This reduces the amount of time someone has to wait for a usb-storage
6device to be usable from 5 seconds to 1 second. Some very old and buggy
7devices might still need the longer timeout, so they can change this
8with the sysfs option.
9
10Change made at the request of the desktop developers who were tired of
11us taking longer than Windows for no good reason.
12
13Signed-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