platform/x86: Move s2idle quirk from thinkpad-acpi to amd-pmc
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 10 Jul 2023 18:39:33 +0000 (13:39 -0500)
committerHans de Goede <hdegoede@redhat.com>
Tue, 11 Jul 2023 09:34:14 +0000 (11:34 +0200)
commite8ef8dd28c4c4b86cd3010ff42c79582f766862e
treee7afdd46fd667b00d45640bffbc2349fee364059
parent9ecedaf6f82acf9e0d68932da2a72aefcf0b7176
platform/x86: Move s2idle quirk from thinkpad-acpi to amd-pmc

It turns out that some-non Lenovo systems can benefit from the quirk
introduced for Lenovo systems in commit 455cd867b85b5 ("platform/x86:
thinkpad_acpi: Add a s2idle resume quirk for a number of laptops").

So move this quirk into running from the amd-pmc driver instead.
No intended functional changes.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20230710183934.17315-2-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/Makefile
drivers/platform/x86/amd/pmc-quirks.c [new file with mode: 0644]
drivers/platform/x86/amd/pmc.c
drivers/platform/x86/amd/pmc.h [new file with mode: 0644]
drivers/platform/x86/thinkpad_acpi.c