platform/x86: amd-pmc: Validate entry into the deepest state on resume
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 10 Mar 2022 15:09:20 +0000 (09:09 -0600)
committerHans de Goede <hdegoede@redhat.com>
Thu, 10 Mar 2022 17:47:55 +0000 (18:47 +0100)
commit854abe25ddb0d33532f15cca7eb5240b02f7db6b
tree3104483ccd9ae04dac0109dbb2ca99d24d275b35
parent10b29dd7eafe1987b44866d3ee1d0d71bf622cb3
platform/x86: amd-pmc: Validate entry into the deepest state on resume

Currently the only way to discover if a system went into the deepest sleep
state is to read from sysfs after you finished suspend.

To better illustrate to users that problems have occurred, check as part
of resume and display a warning.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20220310150920.560583-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