Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

doc: usb: chipidea: add usb wakeup enable example

Add the example for how to enable USB as system wakeup source.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Peter Chen and committed by
Greg Kroah-Hartman
01e3ad86 6d653110

+21
+21
Documentation/usb/chipidea.txt
··· 69 69 ---------------------- 70 70 "On-The-Go and Embedded Host Supplement to the USB Revision 2.0 Specification 71 71 July 27, 2012 Revision 2.0 version 1.1a" 72 + 73 + 2. How to enable USB as system wakeup source 74 + ----------------------------------- 75 + Below is the example for how to enable USB as system wakeup source 76 + at imx6 platform. 77 + 78 + 2.1 Enable core's wakeup 79 + echo enabled > /sys/bus/platform/devices/ci_hdrc.0/power/wakeup 80 + 2.2 Enable glue layer's wakeup 81 + echo enabled > /sys/bus/platform/devices/2184000.usb/power/wakeup 82 + 2.3 Enable PHY's wakeup (optional) 83 + echo enabled > /sys/bus/platform/devices/20c9000.usbphy/power/wakeup 84 + 2.4 Enable roothub's wakeup 85 + echo enabled > /sys/bus/usb/devices/usb1/power/wakeup 86 + 2.5 Enable related device's wakeup 87 + echo enabled > /sys/bus/usb/devices/1-1/power/wakeup 88 + 89 + If the system has only one usb port, and you want usb wakeup at this port, you 90 + can use below script to enable usb wakeup. 91 + for i in $(find /sys -name wakeup | grep usb);do echo enabled > $i;done; 92 +