From: Mia Kanashi Date: Sat, 29 Oct 2022 22:20:08 +0000 (+0300) Subject: ACPI: EC: Add quirk for the HP Pavilion Gaming 15-cx0041ur X-Git-Tag: v6.0.16~180 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=152d5933da3a11baf51757be26524121b25e30ee;p=thirdparty%2Fkernel%2Fstable.git ACPI: EC: Add quirk for the HP Pavilion Gaming 15-cx0041ur [ 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 Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index c95e535035a04..fdc760e1e09ef 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -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