Skip to content

Commit 09fc140

Browse files
superm1jwrdegoede
authored andcommitted
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. Cc: stable@vger.kernel.org Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Link: https://lore.kernel.org/r/20211210143529.10594-1-mario.limonciello@amd.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent 804034c commit 09fc140

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/platform/x86/amd-pmc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,8 @@ static int __maybe_unused amd_pmc_resume(struct device *dev)
508508
}
509509

510510
static const struct dev_pm_ops amd_pmc_pm_ops = {
511-
SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(amd_pmc_suspend, amd_pmc_resume)
511+
.suspend_noirq = amd_pmc_suspend,
512+
.resume_noirq = amd_pmc_resume,
512513
};
513514

514515
static const struct pci_device_id pmc_pci_ids[] = {

0 commit comments

Comments
 (0)