diff options
author | Todd Poynor <toddpoynor@google.com> | 2011-07-01 17:19:56 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2012-02-14 11:30:58 -0800 |
commit | 0d7182be8b2802aa4c705be4b2f58d4cdd085984 (patch) | |
tree | b3bde010b4ffce31cecf7fe47ecaaaab91850a0a /drivers/usb/otg/Kconfig | |
parent | d25e821ee0c89613dc0ec4124485fcbad43fe16c (diff) |
USB: OTG: Take wakelock when VBUS present
Enabled by default, can disable with:
echo N > /sys/module/otg_wakelock/parameters/enabled
Change-Id: I34974624c52ae23490852b44c270d2f326cf6116
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'drivers/usb/otg/Kconfig')
-rw-r--r-- | drivers/usb/otg/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/otg/Kconfig b/drivers/usb/otg/Kconfig index 76d629345418..5a4f408a55f3 100644 --- a/drivers/usb/otg/Kconfig +++ b/drivers/usb/otg/Kconfig @@ -12,6 +12,14 @@ config USB_OTG_UTILS Select this to make sure the build includes objects from the OTG infrastructure directory. +config USB_OTG_WAKELOCK + bool "Hold a wakelock when USB connected" + depends on WAKELOCK + select USB_OTG_UTILS + help + Select this to automatically hold a wakelock when USB is + connected, preventing suspend. + if USB || USB_GADGET # |