Message ID | 20221029222008.32793-1-chad@redpilled.dev |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1548221wru; Sat, 29 Oct 2022 16:19:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4uVppHgKSgDrnS4aBi5JpFUzIFY//GmszDTvnxfgguTIOtkJpau4Kx4VltbLtkymyW/1k8 X-Received: by 2002:a17:907:72cb:b0:7ad:7e95:63f5 with SMTP id du11-20020a17090772cb00b007ad7e9563f5mr5665855ejc.383.1667085565100; Sat, 29 Oct 2022 16:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667085565; cv=none; d=google.com; s=arc-20160816; b=nXkknu23dU7sH+UecGkMQbLGaDkP9exVzti4HTKnJc+bvXvvFKgVgza6v4oEYqbgrd aTLU4mXlyNApSQjDXkiH9pGRShoCKW4y8SqvlSJazdDwAMesv3e/t3eXiII35vSPslbE Yll3Mppq8gOVyOH87GUZOkB8zuGVB4wvS88LsUAnnjss3b55akGcTad3vOD2hX/GeQb2 96oVIDqfpYmMDceWe1VuOE/NrL8DLaCR8P2vzeftIbE/ktDrvs4MTG0pNeji7B05cnCa 8HlnXcwxznvPFyLppls6p8ccE6iRfy71TuhW5TpY456GQFS0m9wQThdIV9+xTZZsB/K/ 94vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:from; bh=JFw+n83nZJpSZhV8ijuCWuTJVYs2LY1MtKNjLbgwIOw=; b=yjv1sKzp6BfuoQLCbRG9nq3FEvUynRpiBtQv19zgP7x+XmCEAJ2+Y863YLBTocYo9t 318SAXVKwbaUZJMKZNX5vr53+tBwTNKxg9e8I2MwfcEbKTnfZUeEfdOviwq0+7jOj4Qt ltEkiaPhHmLAJ/3vG4W1rnYUkVwa+B9KxsqC5+YDkwmfLRXLSP4rRK4DtsKz5lESbIq3 ZQPXMME1WK7ERpPzsq47PJWtMawx7FQrh+pZyPLmz52czeePAftSYlb1/VU6Ii3DJyVK 6+sBNtVYgZTP0N9diwlD1t+z9CDr/st8+IhW0G8BVKIvwK2HdHtPv8rJ7XWW2Cla0xwy IwSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redpilled.dev header.s=mail header.b=E8jj4Iqr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=redpilled.dev Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020a05640211d000b004621e2c473dsi3945191edw.354.2022.10.29.16.19.01; Sat, 29 Oct 2022 16:19:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redpilled.dev header.s=mail header.b=E8jj4Iqr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=redpilled.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229647AbiJ2W0C (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Sat, 29 Oct 2022 18:26:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiJ2WZ7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 29 Oct 2022 18:25:59 -0400 X-Greylist: delayed 311 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 29 Oct 2022 15:25:58 PDT Received: from redpilled.dev (redpilled.dev [195.201.122.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05FE6BCB4; Sat, 29 Oct 2022 15:25:57 -0700 (PDT) From: Mia Kanashi <chad@redpilled.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redpilled.dev; s=mail; t=1667082042; bh=JFw+n83nZJpSZhV8ijuCWuTJVYs2LY1MtKNjLbgwIOw=; h=From:To:Cc:Subject:Date; b=E8jj4IqrN9K0yBvYQoAo6TctXzJVx8xO11uliHBweD+1oqj2XR410YFe2GpNaSCUw Vr6Za4xuZV3prlbLYY80TfA8PY8iKXs9ymxXEmSpqTNmntV0YFMfDMX7yvLt2CZell rkRs3IO4kI/RsNT3Pg80ZXqmeqMDTdaje5vnEkC8= To: rafael@kernel.org Cc: lenb@kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Mia Kanashi <chad@redpilled.dev> Subject: [PATCH] ACPI: EC: Add quirk for the HP Pavilion Gaming 15-cx0041ur Date: Sun, 30 Oct 2022 01:20:08 +0300 Message-Id: <20221029222008.32793-1-chad@redpilled.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, URIBL_BLACK autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748065913405091931?= X-GMAIL-MSGID: =?utf-8?q?1748065913405091931?= |
Series |
ACPI: EC: Add quirk for the HP Pavilion Gaming 15-cx0041ur
|
|
Commit Message
Mia Kanashi
Oct. 29, 2022, 10:20 p.m. UTC
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>
---
drivers/acpi/ec.c | 10 ++++++++++
1 file changed, 10 insertions(+)
Comments
On Sun, Oct 30, 2022 at 12:20 AM Mia Kanashi <chad@redpilled.dev> wrote: > > 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> > --- > drivers/acpi/ec.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c > index 9b42628cf21b..9751b84c1b22 100644 > --- a/drivers/acpi/ec.c > +++ b/drivers/acpi/ec.c > @@ -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 > -- Applied as 6.2 material, thanks!
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 9b42628cf21b..9751b84c1b22 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -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