ACPI: s2idle: Add a new ->check() callback for platform_s2idle_ops
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 29 Aug 2022 16:29:49 +0000 (11:29 -0500)
committerHans de Goede <hdegoede@redhat.com>
Fri, 9 Sep 2022 15:37:40 +0000 (17:37 +0200)
commit811d59fdf56a17c66742578fe8be8a6a841af448
treeecb1c30c5e5082ba8e3d7c664323717db40d822a
parent76fba1221e3045570478381c3436c8c2a2656376
ACPI: s2idle: Add a new ->check() callback for platform_s2idle_ops

On some platforms it is found that Linux more aggressively enters s2idle
than Windows enters Modern Standby and this uncovers some synchronization
issues for the platform.  To aid in debugging this class of problems in
the future, add support for an extra optional callback intended for
drivers to emit extra debugging.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20220829162953.5947-2-mario.limonciello@amd.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/acpi/sleep.h
drivers/acpi/x86/s2idle.c
include/linux/acpi.h
include/linux/suspend.h
kernel/power/suspend.c