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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Nov 2022 18:42:48 +0000 (19:42 +0100)
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>
drivers/acpi/ec.c

index 9b42628cf21b328963285e2c04b1e92d912fbb1a..9751b84c1b22193bf75e551a91f018ce8463573a 100644 (file)
@@ -1875,6 +1875,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