diff options
author | Julius Werner <jwerner@chromium.org> | 2013-03-13 18:57:31 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-29 12:29:12 -0400 |
commit | 4f48203881ce947a0cbd8ae7b1a1a1b04aaa3766 (patch) | |
tree | 522224ae58cbe21d4468cffb2f54af31dd7b5094 /drivers/usb/core/Kconfig | |
parent | 70b55c2ad0e5c8bbbb36cedf6a37f9d029cfd403 (diff) |
usb: Make USB persist default configurable
Commit 9214d1d8 set the USB persist flag as a default for all devices.
This might be desirable for some distributions, but it certainly has its
trade-offs... most importantly, it can significantly increase system
resume time, because the kernel blocks on resuming (and sometimes
resetting) USB devices before it unfreezes userspace.
This patch introduces a new config option CONFIG_USB_DEFAULT_PERSIST,
which allows distributions to make this decision on their own without
the need to carry a custom patch or revert the kernel's setting in
userspace.
[edited the Kconfig help text a bit - gregkh]
Signed-off-by: Julius Werner <jwerner@chromium.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/Kconfig')
-rw-r--r-- | drivers/usb/core/Kconfig | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/usb/core/Kconfig b/drivers/usb/core/Kconfig index 175701a2dae4..7b7305e3abc8 100644 --- a/drivers/usb/core/Kconfig +++ b/drivers/usb/core/Kconfig | |||
@@ -27,6 +27,22 @@ config USB_ANNOUNCE_NEW_DEVICES | |||
27 | comment "Miscellaneous USB options" | 27 | comment "Miscellaneous USB options" |
28 | depends on USB | 28 | depends on USB |
29 | 29 | ||
30 | config USB_DEFAULT_PERSIST | ||
31 | bool "Enable USB persist by default" | ||
32 | depends on USB | ||
33 | default y | ||
34 | help | ||
35 | Say N here if you don't want USB power session persistance | ||
36 | enabled by default. If you say N it will make suspended USB | ||
37 | devices that lose power get reenumerated as if they had been | ||
38 | unplugged, causing any mounted filesystems to be lost. The | ||
39 | persist feature can still be enabled for individual devices | ||
40 | through the power/persist sysfs node. See | ||
41 | Documentation/usb/persist.txt for more info. | ||
42 | |||
43 | If you have any questions about this, say Y here, only say N | ||
44 | if you know exactly what you are doing. | ||
45 | |||
30 | config USB_DYNAMIC_MINORS | 46 | config USB_DYNAMIC_MINORS |
31 | bool "Dynamic USB minor allocation" | 47 | bool "Dynamic USB minor allocation" |
32 | depends on USB | 48 | depends on USB |