[PATCH] enable CONFIG_USB_SUSPEND by default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux