android_kernel_xiaomi_sm8350/drivers/base/power
David Brownell 0ac85241eb [PATCH] driver model wakeup flags
This is a refresh of an earlier patch to add "wakeup" support to the
PM core model.  This provides per-device bus-neutral control of the
use of wakeup events.

  * "struct device_pm_info" has two bits that are initialized as
    part of setting up the enclosing struct device:
      - "can_wakeup", reflecting hardware capabilities
      - "may_wakeup", the policy setting (when CONFIG_PM)

  * There's a writeable sysfs "wakeup" file, with one of two values:
      - "enabled", when the policy is to allow wakeup
      - "disabled", when the policy is not to allow it
      - "" if the device can't currently issue wakeups

By default, wakeup is enabled on all devices that support it.  If its
driver doesn't support it ... treat it as a bug.  :)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-10-28 09:52:50 -07:00
..
main.c
Makefile
power.h
resume.c [PATCH] swsusp: switch pm_message_t to struct 2005-09-05 00:06:16 -07:00
runtime.c [PATCH] swsusp: switch pm_message_t to struct 2005-09-05 00:06:16 -07:00
shutdown.c
suspend.c [PATCH] swsusp: switch pm_message_t to struct 2005-09-05 00:06:16 -07:00
sysfs.c [PATCH] driver model wakeup flags 2005-10-28 09:52:50 -07:00