platform/x86: amd-pmc: only use callbacks for suspend
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 10 Dec 2021 14:35:29 +0000 (08:35 -0600)
committerHans de Goede <hdegoede@redhat.com>
Tue, 21 Dec 2021 17:52:36 +0000 (18:52 +0100)
commitd386f7ef9f410266bc1f364ad6a11cb28dae09a8
treeadf088c2d4be0a2987bcb6a0c016c7821e416973
parentcfc643aa23c8855b92f9302e99a54dbf5857c1ab
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>
drivers/platform/x86/amd-pmc.c