]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ACPI: EC: Add quirk for the HP Pavilion Gaming 15-cx0041ur
authorMia Kanashi <chad@redpilled.dev>
Sat, 29 Oct 2022 22:20:08 +0000 (01:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:26:41 +0000 (13:26 +0100)
[ Upstream commit b423f240a66ad928c4cb5ec6055dfc90ce8d894e ]

Added GPE quirk entry for the HP Pavilion Gaming 15-cx0041ur.
There is a quirk entry for the 15-cx0xxx laptops, but this one has
different DMI_PRODUCT_NAME.

Notably backlight keys and other ACPI events now function correctly.

Signed-off-by: Mia Kanashi <chad@redpilled.dev>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/ec.c

index c95e535035a04adaed3d88b954655dbf23859dd2..fdc760e1e09efeae7f4c8b2499f4b1d2f4f8e19d 100644 (file)
@@ -1879,6 +1879,16 @@ static const struct dmi_system_id ec_dmi_table[] __initconst = {
                        DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion Gaming Laptop 15-cx0xxx"),
                },
        },
+       {
+               /*
+                * HP Pavilion Gaming Laptop 15-cx0041ur
+                */
+               .callback = ec_honor_dsdt_gpe,
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "HP"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "HP 15-cx0041ur"),
+               },
+       },
        {
                /*
                 * Samsung hardware