public inbox for platform-driver-x86@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform/x86/intel: disable wakeup_mode during hibernation
@ 2026-01-20 14:17 David McFarland
  2026-01-20 16:10 ` [PATCH v2] " David McFarland
  0 siblings, 1 reply; 6+ messages in thread
From: David McFarland @ 2026-01-20 14:17 UTC (permalink / raw)
  To: platform-driver-x86; +Cc: David McFarland

Without this change I get the problem described in the linked bug:

> Wakeup event detected during hibernation, rolling back

The docs for the 'freeze' event say:

> Analogous to @suspend(), but it should not enable the device to signal wakeup
> events or change its power state.

I've been running with this change for several months on my Dell
Precision 3680.  I haven't tested on any other systems.

Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=27328
---
 drivers/platform/x86/intel/hid.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/drivers/platform/x86/intel/hid.c b/drivers/platform/x86/intel/hid.c
index 560cc063198e..3a9561665b9b 100644
--- a/drivers/platform/x86/intel/hid.c
+++ b/drivers/platform/x86/intel/hid.c
@@ -419,6 +419,14 @@ static int intel_hid_pl_suspend_handler(struct device *device)
 	return 0;
 }
 
+static int intel_hid_pl_freeze_handler(struct device *device)
+{
+	struct intel_hid_priv *priv = dev_get_drvdata(device);
+
+	priv->wakeup_mode = false;
+	return intel_hid_pl_suspend_handler(device);
+}
+
 static int intel_hid_pl_resume_handler(struct device *device)
 {
 	intel_hid_pm_complete(device);
@@ -433,7 +441,7 @@ static int intel_hid_pl_resume_handler(struct device *device)
 static const struct dev_pm_ops intel_hid_pl_pm_ops = {
 	.prepare = intel_hid_pm_prepare,
 	.complete = intel_hid_pm_complete,
-	.freeze  = intel_hid_pl_suspend_handler,
+	.freeze  = intel_hid_pl_freeze_handler,
 	.thaw  = intel_hid_pl_resume_handler,
 	.restore  = intel_hid_pl_resume_handler,
 	.suspend  = intel_hid_pl_suspend_handler,
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-03-17 13:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-20 14:17 [PATCH] platform/x86/intel: disable wakeup_mode during hibernation David McFarland
2026-01-20 16:10 ` [PATCH v2] " David McFarland
2026-01-22 15:46   ` David McFarland
2026-01-29 12:25   ` Ilpo Järvinen
2026-02-05 23:16     ` [PATCH v3] " David McFarland
2026-03-17 13:01       ` Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox