lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 2 Jan 2009 00:07:27 +0800
From:	Yan Li <elliot.li.tech@...il.com>
To:	gregkh@...e.de, linux-usb@...r.kernel.org
Cc:	linux-kernel@...r.kernel.org
Subject: [PATCH] enable CONFIG_USB_SUSPEND by default

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@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists