summaryrefslogtreecommitdiff
path: root/kernel/power/suspend.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-08-08 12:39:23 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-08-09 11:15:41 +0300
commitd19bdb876bece27187d4ffbc272672e1239cd313 (patch)
tree174fae6bb303c2fd08d0470f457810123ced28c0 /kernel/power/suspend.c
parent31eb845718398f9bc9f6fbe1aca675f4e6284392 (diff)
downloadlinux-d19bdb876bece27187d4ffbc272672e1239cd313.tar.xz
intel-hid: Disable button array during suspend-to-idle
Notice that intel_button_array_enable() never disables the power button which is the only one needed to wake up the system from suspend-to-idle, so it can be safely called during suspend-to-idle as well as during "regular" system suspend, and rearrange the code in the driver's "suspend" and "resume" callbacks accordingly. While at it, use pm_suspend_no_platform() to check if the current suspend-resume cycle is suspend-to-idle, as that is the only case when the device should be enabled while suspended. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'kernel/power/suspend.c')
0 files changed, 0 insertions, 0 deletions