FAILED: patch "[PATCH] platform/x86: amd-pmc: only use callbacks for suspend" failed to apply to 5.15-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 5.15-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From d386f7ef9f410266bc1f364ad6a11cb28dae09a8 Mon Sep 17 00:00:00 2001
From: Mario Limonciello <[email protected]>
Date: Fri, 10 Dec 2021 08:35:29 -0600
Subject: [PATCH] platform/x86: amd-pmc: only use callbacks for suspend
This driver is intended to be used exclusively for suspend to idle so callbacks to send OS_HINT during hibernate and S5 will set OS_HINT at the wrong time leading to an undefined behavior.
Signed-off-by Mario Limonciello <[email protected]>
Reviewed-by Hans de Goede <[email protected]>
Signed-off-by Hans de Goede <[email protected]>
drivers/platform/x86/amd-pmc.c +2 -1
@@ -585,7 +585,8 @@ static int __maybe_unused amd_pmc_resume(struct device *dev) }static const struct dev_pm_ops amd_pmc_pm_ops = { -SET_NOIRQ_SYSTEM_SLEEP_PM_OPS (amd_pmc_suspend, amd_pmc_resume) + .suspend_noirq = amd_pmc_suspend, + .resume_noirq = amd_pmc_resume, };static const struct pci_device_id pmc_pci_ids[] = {