Received: by 2002:ac8:3b51:0:b0:3f3:9eb6:4eb6 with SMTP id r17csp11479898qtf; Sun, 2 Jul 2023 13:00:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bD6snUxRhaTUgnXWnE3qR0uYC9zZCzkCty0xxfaNGz5JzT1HcmFVW6Kjy/Pj67+XJWgtA X-Received: by 2002:a05:6a20:8f0f:b0:122:b613:8b2 with SMTP id b15-20020a056a208f0f00b00122b61308b2mr11444601pzk.0.1688328014296; Sun, 02 Jul 2023 13:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688328014; cv=none; d=google.com; s=arc-20160816; b=0YlUi+bL45eKJ9W3a8v284s/Zmd5Qx8Nck0m/iY6NERbzMVPAlRBDGBkPkd4jstHPj yZueQ0JhggPkWDhG158UscZz8j+QvWtd3kBFcLiIKF3CnvuCyEugQKLM4ueguAVRAADK Lh2fnKidhn63DL1Jy2XDl7Exq/3aiN54Bk2i1xrKkt01KOvs0guofTYCdc6lZ0woNieq eRU4r4Kp4QGI6ddQrUjXtYpjcllpS/G4kINpp6WKIjerEPCYY/pUDpRU2BylTjY6rE6B fh1suA5GDYbs852QJ3YTq5OWwAvtbChuhFSx2rHhRjtJIurrDvVx7wAQAzGetDNMwXKr wvKA== 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=7j9mN7NNet+27JrQjf+CDAKh5ncvQfdZMoZzbbjCulY=; fh=xaFp3P3D5/IKNcc3lyAQro7aK7MMelltwxpprXm2jhg=; b=u5D1XfdcYot+e2rbP0e6Grnk9HF56dBcGrq0KRlp0ItZw2fpKfohlljdKU5bcLy+Bp 4yJ1BlN7bX5iE5cChHBVx9yKb4Am4F0t/T8Du0wCy3POfjDH7qrpguth32BSwCHTjuAD aNLmYOhPYruQJxEaiH2B4wF+ViWuQ+vjFTwzV0q4RQ5Y5pFpM9J5eoWj1rJS479HQsT0 a/+QDhvHhIr9j5HFL6FQxEg6dfUJmEBNL4Lo9PP2DhMDZLateBf9TSVx1CL/dC0e6NQQ 6KR+kAGC2bbpR8DcaVcFNq7o4/ykm79etuwTDz7eeBaxptvRuqEIXKDlFvXqBG2VCLzL FRWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="h/kQhDwc"; 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 20-20020a621914000000b006826f3512f1si3958655pfz.204.2023.07.02.13.00.02; Sun, 02 Jul 2023 13:00:14 -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="h/kQhDwc"; 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 S232835AbjGBTyp (ORCPT + 99 others); Sun, 2 Jul 2023 15:54:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230371AbjGBTyd (ORCPT ); Sun, 2 Jul 2023 15:54:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F277C199A; Sun, 2 Jul 2023 12:52:02 -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 F0BE360C75; Sun, 2 Jul 2023 19:51:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D7C2C433C7; Sun, 2 Jul 2023 19:51:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688327463; bh=RPVf79G9Z6bC8QuV2X6vCZINAtB/lji81jjylWCwAWU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h/kQhDwccPuBuwFuPnqE1x6xPt8Yc5FZxrC18BBJ8pMMc/7WE1AAJ/e4IOwnqZ/DE pJJR3AHScHNEhCrljRNpIAo8Og2nAriddICxyGEDwNlr5ANcvAleS21xVKWyYlFoCl Z+fsTZY9Xb84XaHY4qa6bBIiB0dpn55/M4A5x+YSash3be2onCWL7nxTT8sUsNMEP+ 07ucHR1ZLiVcyCudJ9f5RbgER2PyiokCHlXeK9D4E+K2FfzoQJ0MaD+FY8S+ULKMFW i3rpX3NwbcpJIq2gFa7a7pucHRS2FUNcGas2pjBGUW5F31ybQ3EHi+/PEMuXRjQRs/ fWcskAw9qMxzQ== 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, mario.limonciello@amd.com, andriy.shevchenko@linux.intel.com, mail@mariushoch.de, linux-acpi@vger.kernel.org Subject: [PATCH AUTOSEL 6.4 02/12] ACPI: x86: Add skip i2c clients quirk for Nextbook Ares 8A Date: Sun, 2 Jul 2023 15:50:47 -0400 Message-Id: <20230702195057.1787686-2-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 69d6b37695c1f2320cfa330e1e1636d50dd5040a ] The Nextbook Ares 8A is a x86 ACPI tablet which ships with Android x86 as factory OS. Its DSDT contains a bunch of I2C devices which are not actually there (the Android x86 kernel fork ignores I2C devices described in the DSDT). On this specific model this just not cause resource conflicts, one of the probe() calls for the non existing i2c_clients actually ends up toggling a GPIO or executing a _PS3 after a failed probe which turns the tablet off. Add a ACPI_QUIRK_SKIP_I2C_CLIENTS for the Nextbook Ares 8 to the acpi_quirk_skip_dmi_ids table to avoid the bogus i2c_clients and to fix the tablet turning off during boot because of this. Also add the "10EC5651" HID for the RealTek ALC5651 codec used in this tablet to the list of HIDs for which not to skipi2c_client instantiation, since the Intel SST sound driver relies on the codec being instantiated through ACPI. Signed-off-by: Hans de Goede Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/x86/utils.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/x86/utils.c b/drivers/acpi/x86/utils.c index 9c2d6f35f88a0..4cfee2da06756 100644 --- a/drivers/acpi/x86/utils.c +++ b/drivers/acpi/x86/utils.c @@ -365,7 +365,7 @@ static const struct dmi_system_id acpi_quirk_skip_dmi_ids[] = { ACPI_QUIRK_SKIP_ACPI_AC_AND_BATTERY), }, { - /* Nextbook Ares 8 */ + /* Nextbook Ares 8 (BYT version)*/ .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), DMI_MATCH(DMI_PRODUCT_NAME, "M890BAP"), @@ -374,6 +374,16 @@ static const struct dmi_system_id acpi_quirk_skip_dmi_ids[] = { ACPI_QUIRK_SKIP_ACPI_AC_AND_BATTERY | ACPI_QUIRK_SKIP_GPIO_EVENT_HANDLERS), }, + { + /* Nextbook Ares 8A (CHT version)*/ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Insyde"), + DMI_MATCH(DMI_PRODUCT_NAME, "CherryTrail"), + DMI_MATCH(DMI_BIOS_VERSION, "M882"), + }, + .driver_data = (void *)(ACPI_QUIRK_SKIP_I2C_CLIENTS | + ACPI_QUIRK_SKIP_ACPI_AC_AND_BATTERY), + }, { /* Whitelabel (sold as various brands) TM800A550L */ .matches = { @@ -392,6 +402,7 @@ static const struct dmi_system_id acpi_quirk_skip_dmi_ids[] = { #if IS_ENABLED(CONFIG_X86_ANDROID_TABLETS) static const struct acpi_device_id i2c_acpi_known_good_ids[] = { { "10EC5640", 0 }, /* RealTek ALC5640 audio codec */ + { "10EC5651", 0 }, /* RealTek ALC5651 audio codec */ { "INT33F4", 0 }, /* X-Powers AXP288 PMIC */ { "INT33FD", 0 }, /* Intel Crystal Cove PMIC */ { "INT34D3", 0 }, /* Intel Whiskey Cove PMIC */ -- 2.39.2