]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: surfacepro3: Support for wakeup from suspend-to-idle
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Jan 2018 12:26:35 +0000 (13:26 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 11 Jan 2018 17:54:50 +0000 (18:54 +0100)
commit19351f340765ebef48d07eade8ffb5f6f1118244
tree99294de970cc104c6435e6f8065bbc239f123f40
parent29a5a6d7082427371519ae1e186d9e35612801fb
platform/x86: surfacepro3: Support for wakeup from suspend-to-idle

Modify surface_button_notify() to make it wake up the system from
suspend-to-idle (by reporting "hard" wakeup events while suspended)
and add wakeup initialization to surface_button_add() for wakeup
events reported by this driver to work at all.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=198389
Reported-by: Valentin Manea <valy@mrs.ro>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Valentin Manea <valy@mrs.ro>
drivers/platform/x86/surfacepro3_button.c