]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ACPI: PM: save NVS memory for Lenovo G40-45
authorManyi Li <limanyi@uniontech.com>
Wed, 22 Jun 2022 07:42:48 +0000 (15:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:17:31 +0000 (11:17 +0200)
[ Upstream commit 88f6fcc95efa31683def52521ca353ae5a925905 ]

[80a5e32a512bc85ecd02c6d7ae0b78e98a8e5434] is to make machines
produced from 2012 to now not saving NVS region to accelerate S3.

But, Lenovo G40-45, a platform released in 2015, still needs NVS memory
saving during S3. A quirk is introduced for this platform.

Signed-off-by: Manyi Li <limanyi@uniontech.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/sleep.c

index 34966128293b1a581f87eb66a6aee141e7f96ad9..b9d203569ac1d3d170315850383e23101f612d9a 100644 (file)
@@ -361,6 +361,14 @@ static const struct dmi_system_id acpisleep_dmi_table[] __initconst = {
                DMI_MATCH(DMI_PRODUCT_NAME, "80E3"),
                },
        },
+       {
+       .callback = init_nvs_save_s3,
+       .ident = "Lenovo G40-45",
+       .matches = {
+               DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+               DMI_MATCH(DMI_PRODUCT_NAME, "80E1"),
+               },
+       },
        /*
         * ThinkPad X1 Tablet(2016) cannot do suspend-to-idle using
         * the Low Power S0 Idle firmware interface (see