[#3994] echo 'enabled' to /sys/class/rtc/rtc0/power/wakeup don't work
Submitted By: Vivi Li
2008-03-28 07:27:23 Close Date
Closed Fixed In Release:
Found In Release:
N/A Silicon Revision:
Is this bug repeatable?:
Uboot version or rev.:
Toolchain version or rev.:
App binary format:
Summary: echo 'enabled' to /sys/class/rtc/rtc0/power/wakeup don't work
For power management, I can wake up system by rtc without echoing 'enabled' to /sys/class/rtc/rtc0/power/wakeup.
System should not be able to wake up by rtc unless echo 'enabled' to /sys/class/rtc/rtc0/power/wakeup.
--- Mike Frysinger 2008-03-28 20:49:56
i think this is as designed. wakeup sources are enabled by default. you have
to echo "disabled" in order to turn them off.
All devices in the driver model have two flags to control handling of
wakeup events, which are hardware signals that can force the device and/or
system out of a low power state. These are initialized by bus or device
driver code using device_init_wakeup(dev,can_wakeup).
The "can_wakeup" flag just records whether the device (and its
physically support wakeup events. When that flag is clear, the sysfs
"wakeup" file is empty, and device_may_wakeup() returns false.
For devices that can issue wakeup events, a separate flag controls whether
that device should try to use its wakeup mechanism. The initial value of
device_may_wakeup() will be true, so that the device's "wakeup" file
the value "enabled". Userspace can change that to
"disabled" so that
device_may_wakeup() returns false; or change it back to "enabled" (so
it returns true again).
File Name File Type File Size Posted By
No Files Were Found