ACPI: x86: s2idle: Add module parameter to prefer Microsoft GUID
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 21 Sep 2022 20:40:50 +0000 (15:40 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 25 Sep 2022 15:44:55 +0000 (17:44 +0200)
commita0bc002393d42ab7d895b0e82e730ce7622bdbff
treeb4addbc47cca158ec19be93c27da7f5d1ef44f2c
parentfd894f05cf30956296384b0c4a81892ed21ac1d9
ACPI: x86: s2idle: Add module parameter to prefer Microsoft GUID

OEMs have made some mistakes in the past for the AMD GUID support
and not populated the method properly.  To add an escape hatch for
this problem introduce a module parameter that can force using
the Microsoft GUID.

This is intentionally introduced to both Intel and AMD codepaths
to allow using the parameter as a debugging tactic on either.

Reviewed-by: Philipp Zabel <philipp.zabel@gmail.com>
Tested-by: Philipp Zabel <philipp.zabel@gmail.com> # GA402RJ
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/x86/s2idle.c