From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C9013E95A9; Tue, 31 Mar 2026 16:49:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774975772; cv=none; b=M7Maxwv9AX0aaB2qiPhC7/NC6TKbwBHzY6N54qsaqx8hHu2ciFUD+f+8CveFqV7Dqdu5rseJzUtUM1pEVbgoWHTVx4nBBnmSdRyb618rLFxW8FQ5e8tfR5Gm8bTC+4dJa0seeDXeYMTzericxUF9RCQusIKo9hDookYErsXj4EY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774975772; c=relaxed/simple; bh=z4TQXIIj3cKgeukD2iNJi5Dx0Pz4bH2CXSlPqb0U9II=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=H4bhRiPXldl1saAXgYIff9vfBIl7Isk53ajmEuVsHG4TBNhrg09VA/SYjZa75OtuDot7dG9qFSu4w1u3Yxd1KX73NnUt0NrV/qDj0Oa6FRlfM4zyqfShs+5+8I1ckVrOp7a2lPjFr1oYDBFaP9I7EFx61gn1MjpuXn8JlfnQcnA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YelPRP+n; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="YelPRP+n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5A7AC19423; Tue, 31 Mar 2026 16:49:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774975772; bh=z4TQXIIj3cKgeukD2iNJi5Dx0Pz4bH2CXSlPqb0U9II=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YelPRP+nk75iFgiq2MoU13iw/JB2pytpHgvJpmbtJA+B8fWhE5BcEQq6nlX8o8WHx E4VvrWW8ErX+zVcLK7IWbFpRMRHhcu0RRYfkw1pxuL0hOurIM+5mioLxrKb7JWcP/C hdozOl0p2CG87gFJ0J00AXAQb/UyZFu96EkisJuU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, David McFarland , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Sasha Levin Subject: [PATCH 6.12 081/244] platform/x86: intel-hid: disable wakeup_mode during hibernation Date: Tue, 31 Mar 2026 18:20:31 +0200 Message-ID: <20260331161744.674663592@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260331161741.651718120@linuxfoundation.org> References: <20260331161741.651718120@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: David McFarland [ Upstream commit e02ea3ae8ee40d5835a845884c7b161a27c10bcb ] Add a freeze handler which clears wakeup_mode. This fixes aborted hibernation on Dell Precision 3880. Wakeup event detected during hibernation, rolling back This system sends power button events during hibernation, even when triggered by software. Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218634 Fixes: 0c4cae1bc00d ("PM: hibernate: Avoid missing wakeup events during hibernation") Signed-off-by: David McFarland Link: https://patch.msgid.link/20260205231629.1336348-1-corngood@gmail.com Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen Signed-off-by: Sasha Levin --- 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 a51b65280bc40..0e81904548f36 100644 --- a/drivers/platform/x86/intel/hid.c +++ b/drivers/platform/x86/intel/hid.c @@ -423,6 +423,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); @@ -437,7 +445,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.51.0