Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1918233rda; Tue, 24 Oct 2023 07:14:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFE627ofzwjdZPBkTtp7UeHoHyIQCLhcnM5iNjts/3igeWWFMx5epKYFWHa6P7O3/3wsan1 X-Received: by 2002:a05:6358:ce30:b0:168:cd22:c8e3 with SMTP id gt48-20020a056358ce3000b00168cd22c8e3mr9004396rwb.0.1698156892352; Tue, 24 Oct 2023 07:14:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698156892; cv=none; d=google.com; s=arc-20160816; b=XyJ4+8VrpcCOyN7H7WwudCOKndh/8dFfSLqTlJ7ioPZib+Pbk4HQ/5Ly0aYi3i5m+5 AZAlzVMEUKt6vJoOxRgaPHpyGgjxcUEkDr8uhd0wEGCogesaO/GdgRUCysUmmW+Xk+oh Y7xlXVSfjryRtfMqnHavwYzP1yhpClxvrdOd9uzTBMQqSKEtHdhyqkrjWWzL8I0wlwJq dtUtlowjYi6jMkgQ0IwX7lk0/9MkROc/a5wrV1MAjOy5qQHsoC3xAwAXw/ZZ0LZ6B5g7 rYB5tq6wsnniAMzjM0wtt6d/P6F2sUuCk2JP/ijR5mE60TqAhpSu8bei594Ot7UKmff0 QMQQ== 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:from:dkim-signature; bh=scCY6Z97zhmNP1gAoFGdRujC/I+uoKWN9MG2mo0gcTs=; fh=cBUuA/8Bbzi0UaS5grBphbsVYPBw9JvVIdqwdYjgev8=; b=ljmNfigC2vFVsDUIXXV3ZhRbMG99lIpWIJQ1R8I91lUPmDkgNY9MUnfGv4u4q+Bp2H 95ApXcU9o/Q459tLaHWKXsrCJD0C3vkcpNKGWpJN2gixO0X2aTtKDZGD95q+zyZb1O+D x2Z9jcGaIhKixAGeSonua+k/rToOed1B+OwZ9JC5q9aevKJ20XLSsCL0hJGMKLQmocfV 3gGbQtgqdRUasAvPlox9EiS3q3VstPD8h+2SuxlqxiupXI18eM7Dh53zGosENEHSAXmR B+zc8yqa2AdYXfUXiPsI+n8z2DANFxDSyyNHCe+2DH/u56G51t1RE/qFAksazCURv0w7 svLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=iQh0FwQl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id bw13-20020a056a02048d00b005b7e3ee1820si8884385pgb.157.2023.10.24.07.14.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 07:14:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=iQh0FwQl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 1F0AA80C61BA; Tue, 24 Oct 2023 07:14:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343618AbjJXOO0 (ORCPT + 99 others); Tue, 24 Oct 2023 10:14:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343518AbjJXOOZ (ORCPT ); Tue, 24 Oct 2023 10:14:25 -0400 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5712DC4 for ; Tue, 24 Oct 2023 07:14:23 -0700 (PDT) Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-3b512dd7d5bso454747b6e.1 for ; Tue, 24 Oct 2023 07:14:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1698156862; x=1698761662; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=scCY6Z97zhmNP1gAoFGdRujC/I+uoKWN9MG2mo0gcTs=; b=iQh0FwQlMa87RELBXsNWCfDI3b2MGNPOe73mEkNZpz9fz2kQp+lJVOjgkfGZ9t8ve0 rE21QNzM9UIS+7IdD84dW9d9cMgMrNFAJMk/Zv6a4NicM9T+K8bED20twNghv6azdzoB f2oLvj7bzm+g5GMafulru3VPe7B55rMGOmyNQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698156862; x=1698761662; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=scCY6Z97zhmNP1gAoFGdRujC/I+uoKWN9MG2mo0gcTs=; b=GQUSKBMK42k2j1q9RyjdhrDlMCoqSS1uHLJkOjSkYHhC1mfox5JmkbdwKPIwIvqCFw rDRGCcbTsQt9vorjbUfJcED4EVFU3w2Bvzj9fBy2STNh2G6TlhqDOpHzfnGw2B7kugYP fVVYVRSe7nmQS0wE5FlV6Z9e/jihIN9vve65Q1MJf3VLtpLDgR6EdE49rgtMnytaOj5V +vOEkYhQv/Eg1WYkGB581MKTEWJYU2USJZcI248Xnv8knZbeO2FbY5EVaaY+fYLz6omG 2SCahsEKB9QNwI9zahUXzyXif30IPnNMNv7LEHVe9K+79yJS3eYBOXwEmV2uIQ6JACM5 xD6w== X-Gm-Message-State: AOJu0YwjKamcYGHuFPx+ThLryOVbThJ80Z4kroqNoMelww7YUOgDYUCL 7CObt2XXmitelvTGdsuSyH4T2dW/VnVycTbe2W4= X-Received: by 2002:a05:6808:152a:b0:3b2:e48d:97bd with SMTP id u42-20020a056808152a00b003b2e48d97bdmr16779320oiw.23.1698156862206; Tue, 24 Oct 2023 07:14:22 -0700 (PDT) Received: from jdenose34.roam.corp.google.com (99-137-158-190.lightspeed.cicril.sbcglobal.net. [99.137.158.190]) by smtp.gmail.com with ESMTPSA id bx20-20020a0568081b1400b003af60f06629sm1948590oib.6.2023.10.24.07.14.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 07:14:21 -0700 (PDT) From: Jonathan Denose X-Google-Original-From: Jonathan Denose To: LKML Cc: linux-acpi@vger.kernel.org, Jonathan Denose , Len Brown , "Rafael J. Wysocki" Subject: [PATCH] ACPI: EC: Add quirk for HP 250 G7 Notebook PC Date: Tue, 24 Oct 2023 09:13:36 -0500 Message-ID: <20231024091336.1.Ie25ddf26b761bf185b7152c6a9884977f0ce73f9@changeid> X-Mailer: git-send-email 2.42.0.758.gaed0368e0e-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 24 Oct 2023 07:14:36 -0700 (PDT) Added GPE quirk entry for HP 250 G7 Notebook PC. This change allows the lid switch to be identified as the lid switch and not a keyboard button. With the lid switch properly identified, the device triggers suspend correctly on lid close. Signed-off-by: Jonathan Denose --- drivers/acpi/ec.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index c95d0edb0be9e..a59c11df73754 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -1924,6 +1924,16 @@ static const struct dmi_system_id ec_dmi_table[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion Gaming Laptop 15-dk1xxx"), }, }, + { + /* + * HP 250 G7 Notebook PC + */ + .callback = ec_honor_dsdt_gpe, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "HP"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP 250 G7 Notebook PC"), + }, + }, { /* * Samsung hardware -- 2.42.0.758.gaed0368e0e-goog