]> git.karo-electronics.de Git - linux-beck.git/commitdiff
intel-hid: add a workaround to ignore an event after waking up from S4.
authorAlex Hung <alex.hung@canonical.com>
Mon, 21 Mar 2016 08:08:42 +0000 (16:08 +0800)
committerDarren Hart <dvhart@linux.intel.com>
Mon, 28 Mar 2016 17:00:47 +0000 (10:00 -0700)
This is the same as the original workaround from S3 but for S4.  Without
this workaround, a rfkill event will be received and it will toggle
wireless devices when radio hotkey is not pressed.

Signed-off-by: Alex Hung <alex.hung@canonical.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/intel-hid.c

index f93abc8c1424ad956f62b8dbb5a6dadffd6b4c5b..a818db6aa08f22dfaf8eca3a5b02049a31363cbd 100644 (file)
@@ -91,6 +91,8 @@ static int intel_hid_pl_resume_handler(struct device *device)
 }
 
 static const struct dev_pm_ops intel_hid_pl_pm_ops = {
+       .freeze  = intel_hid_pl_suspend_handler,
+       .restore  = intel_hid_pl_resume_handler,
        .suspend  = intel_hid_pl_suspend_handler,
        .resume  = intel_hid_pl_resume_handler,
 };