Received: by 2002:ac8:3b51:0:b0:3f3:9eb6:4eb6 with SMTP id r17csp11486188qtf; Sun, 2 Jul 2023 13:14:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlGCA6g6qAxeZ3oGBdNou6UINopkyPIxaql3+w+E9jFzCIWEJkygrQHI8a854lYA3APdnMyg X-Received: by 2002:a17:90b:392:b0:260:9cad:c56d with SMTP id ga18-20020a17090b039200b002609cadc56dmr6971341pjb.7.1688328895915; Sun, 02 Jul 2023 13:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688328895; cv=none; d=google.com; s=arc-20160816; b=Zlj2GBbRTskr+QLR7XAhH6Qil4q1EosO4tC+PlHnjyI3NvnSj+5jZwVNwyBR0p9JkG BVgVzTEpVGceJGAMzeEXlPBXYJjFRumc4HeKB3RbWRXKmaKTjM4NBqZKRXoDOEYOFAym PjTuOVhpYhHGvNTHkJFKOP/PiRLONMGMOpoXeQVYKFpUaKrFKjF3VW4eF8a+cU8x6lnf tt67PMv9u2xD/PmGDs6US2ivjkhj/M+bnv8HMVFsRd1Poimkbqd5UlvMLiftHF0T2vxw 9N5cq11u6OwtXOCnLwNJJkLulAzMYi8GDQBTkYbp1qdY8XYVhr/FBiyh94P3S21lgLUz FrNw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZXuBhSmGNEFhSiRuLjzevaTRHaF5bPWoa64ie/Tg1Eo=; fh=5nQgtDD2IcpIaJbR7c3IbYxTd+bcXwDpmnkQfGQ6RgQ=; b=Y3scNOPMQJ+Z1lm/rhGOkxN5iypPQpfKuAxSFhZxrsGxnmbqIJKbr7TgrbSNSvsgMf goJ56dd0Q7REOeig8yyEfoUXogw7o+AAmKZTZ+484kQ2F/ZKHiHruhdZfdAZnL0Eqv9v STnTSBbo7/biIuAtAFy4Cncm1CeYMsmvMFO0TLnsixYwRiDA3LtPq11uzUM8YvgQPsV8 ADwoTBTPJvFkEm0K2GuwKoJT4wpdZi2Wqh3NjTk29+L/ZxhTYF/8M6eTHBtwndYQXSJX AP2OdbM5F5LUSqogzvsEr/GMLhvW9W+TXLezG3LFYqE3IVopckJorr41lVRgysoNHxb+ zJjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bKtv3U64; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y11-20020a17090a86cb00b00260e4b41b3csi9829802pjv.68.2023.07.02.13.14.42; Sun, 02 Jul 2023 13:14:55 -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=@kernel.org header.s=k20201202 header.b=bKtv3U64; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231370AbjGBTzG (ORCPT + 99 others); Sun, 2 Jul 2023 15:55:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233023AbjGBTym (ORCPT ); Sun, 2 Jul 2023 15:54:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AAD22966; Sun, 2 Jul 2023 12:52:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 27A7460C84; Sun, 2 Jul 2023 19:51:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6D69C433C8; Sun, 2 Jul 2023 19:51:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688327464; bh=MY2QVCepyYKb6djDRwYxhF8cokHoC5u9Fkge0FG6BME=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bKtv3U64PxlGkrH/1oEmthJk/t/sQkqtGTBm2wO8ZAcRWuRymzsBu0jefq4RjhDLB EN3eXsq2wD3VG250CyQBP9d8cIs0F0iOQHs/FL6KkRyC/24rJwZ76DEpqHimPgI9z0 LfXqtb1GHnCsvShTm6GZ0BzhldtCD3eneNoEosL1J/XQ1MC5x5+f3xf0xbJBDsYWry 8gbAPMfB4jRHyqu1SrahCgki1ee9gFD6BFlTHkB2YnhgtSMrz+m7iZH4dtAYpy7aN3 lCgQ1jcqU8urTlaLhbBRJ5se3/SHezqNhFxEaPTUtgMzpwL2OgvyotIT5qOHniyitB RVRpkFZ4dNeLA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hans de Goede , "Rafael J . Wysocki" , Sasha Levin , rafael@kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH AUTOSEL 6.4 03/12] ACPI: button: Add lid disable DMI quirk for Nextbook Ares 8A Date: Sun, 2 Jul 2023 15:50:48 -0400 Message-Id: <20230702195057.1787686-3-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230702195057.1787686-1-sashal@kernel.org> References: <20230702195057.1787686-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.4.1 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede [ Upstream commit 4fd5556608bfa9c2bf276fc115ef04288331aded ] The LID0 device on the Nextbook Ares 8A tablet always reports lid closed causing userspace to suspend the device as soon as booting is complete. Add a DMI quirk to disable the broken lid functionality. Signed-off-by: Hans de Goede Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/button.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c index 475e1eddfa3b4..ef77c14c72a92 100644 --- a/drivers/acpi/button.c +++ b/drivers/acpi/button.c @@ -77,6 +77,15 @@ static const struct dmi_system_id dmi_lid_quirks[] = { }, .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_DISABLED, }, + { + /* Nextbook Ares 8A tablet, _LID device always reports lid closed */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), + DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"), + DMI_MATCH(DMI_BIOS_VERSION, "M882"), + }, + .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_DISABLED, + }, { /* * Lenovo Yoga 9 14ITL5, initial notification of the LID device -- 2.39.2