From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73944364A5; Fri, 24 Nov 2023 18:47:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="bQn0ndrd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD34EC433C8; Fri, 24 Nov 2023 18:47:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1700851678; bh=lVk+u6XM+1O7oVhF+MKczn3W8WgqSSpmzhPbvyHsk4U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bQn0ndrdH6pzlg8M/8ewWhpr8q/QSIlL5QOuxAJJA5IHXeiHxYAxGhXO9p21RxL52 wzLagl4D14rKbMDVZlytzq1n+hyfT9jhkcs5J8sndRJH/972nQ9S4Unltx6+CV+Cgw +C5MoFjaay4svrlLCA67I5UOr6ACs61/1vsVKCS0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jonathan Denose , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 6.1 027/372] ACPI: EC: Add quirk for HP 250 G7 Notebook PC Date: Fri, 24 Nov 2023 17:46:54 +0000 Message-ID: <20231124172011.383442345@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231124172010.413667921@linuxfoundation.org> References: <20231124172010.413667921@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jonathan Denose [ Upstream commit 891ddc03e2f4395e24795596e032f57d5ab37fe7 ] Add 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 Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/ec.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 8bb233d2d1e48..77d1f2cb89ef3 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -1897,6 +1897,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