Skip to contentSkip to conversation

intel-hid: add a workaround to ignore an event after waking up from S4.

PATCH In review Alex Hung 2 participants 2 messages Mar 21, 2016 – Mar 28, 2016 x86 platform drivers

lore
Share & tools
lore

Alex Hung

author
#0 lore raw

PATCH 1/1 intel-hid: add a workaround to ignore an event after waking up from S4.

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.

---
 drivers/platform/x86/intel-hid.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/platform/x86/intel-hid.c +2 -0
index e20f23e..4ad57b9 100644
@@ -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,
 };
Signature · 1 line
2.5.0
#1 lore raw
Quoted 14 lines · Alex Hung

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.

---
 drivers/platform/x86/intel-hid.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/platform/x86/intel-hid.c +0 -0
index e20f23e..4ad57b9 100644

drivers/platform/x86/intel-hid.c static int intel_hid_pl_resume_handler(struct device *device) · line 98

Quoted 8 lines
drivers/platform/x86/intel-hid.c +2 -0
@@ -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,
 };

Thanks Alex, queued to "fixes" for the 4.6-rc cycle.

Signature · 2 lines
Darren Hart
Intel Open Source Technology Center