Skip to contentSkip to conversation

ACPI: EC: Add quirk for the HP Pavilion Gaming 15-cx0041ur

PATCH Applied Mia Kanashi 2 participants 2 messages Oct 29, 2022 – Nov 3, 2022 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: EC: Add quirk for the HP Pavilion Gaming 15-cx0041ur

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.

---
 drivers/acpi/ec.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
drivers/acpi/ec.c +10 -0
index 9b42628cf21b..9751b84c1b22 100644
@@ -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
Signature · 1 line
2.37.3
maintainer Applied
#1 lore raw
Quoted 24 lines · Mia Kanashi

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.

---
 drivers/acpi/ec.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
drivers/acpi/ec.c +4 -0
index 9b42628cf21b..9751b84c1b22 100644
@@ -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
+                */

drivers/acpi/ec.c static const struct dmi_system_id ec_dmi_table[] __initconst = {

Quoted 10 lines
drivers/acpi/ec.c +6 -1
+               .callback = ec_honor_dsdt_gpe,
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "HP"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "HP 15-cx0041ur"),
+               },
+       },
        {
                /*
                 * Samsung hardware
--

Applied as 6.2 material, thanks!