[PATCH] enable CONFIG_USB_SUSPEND by default

Yan Li
2009-01-01T16:07:45Z

Some USB devices need to be put into suspend mode before
unplugging. Without CONFIG_USB_SUSPEND we have no way to unplug them
safely.

Signed-off-by: Yan Li <elliot.li.tech@gmail.com>
---
drivers/usb/core/Kconfig | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/core/Kconfig b/drivers/usb/core/Kconfig
index e1759d1..457ee9d 100644
--- a/drivers/usb/core/Kconfig
+++ b/drivers/usb/core/Kconfig
@@ -89,18 +89,20 @@ config USB_DYNAMIC_MINORS
config USB_SUSPEND
bool "USB selective suspend/resume and wakeup"
depends on USB && PM
+ default y
help
If you say Y here, you can use driver calls or the sysfs
"power/level" file to suspend or resume individual USB
- peripherals and to enable or disable autosuspend (see
- Documentation/usb/power-management.txt for more details).
+ peripherals and to enable or disable autosuspend. Some USB
+ devices need to be put into suspend mode before unplugging
+ (see Documentation/usb/power-management.txt for more details).

Also, USB "remote wakeup" signaling is supported, whereby some
USB devices (like keyboards and network adapters) can wake up
their parent hub. That wakeup cascades up the USB tree, and
could wake the system from states like suspend-to-RAM.

- If you are unsure about this, say N here.
+ If you are unsure about this, say Y here.

config USB_OTG
bool
--
1.5.6.5

--
Li, Yan