Received: by 10.223.176.5 with SMTP id f5csp830003wra; Tue, 30 Jan 2018 20:28:21 -0800 (PST) X-Google-Smtp-Source: AH8x227ELQPa4h9CPLqStBxeBorklmirbYK+F483fRcb0aCjKWA7EnuP4ZMu+XFwDPtL2f8bJs2T X-Received: by 10.101.100.69 with SMTP id s5mr26177914pgv.88.1517372901750; Tue, 30 Jan 2018 20:28:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517372901; cv=none; d=google.com; s=arc-20160816; b=GbzuZvG49GQ4dAePA+IDJRXNI4o6xzBOB8oYJXEYlqlmGdKVAfGdis3vWUec+alnKR Du1lKqFL88eAKLwa7fG+qv4cwysvrjLR/czHmXJSWYsNt5b4Dgy1s1V0N5zMa8c0JkUU 9WIUuddzdynA3BEGU/WpwJY3YXMXV3rNdtkFw41Zs1E9Wm2vWDJLsbw/76YH6agtjCso bStqb03wLkuC6zjfqO2bzn3286D2n+fr8jPjX7R2iXIRh5Pwkt0EuburF/2mIWLhENfC pl4ZcrLwWEGiUTepJbP/P5F+UIeOIYSG2TAY8dHtLjuRrpzOaLOEXzl9ld79kHClU8PS r7lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:arc-authentication-results; bh=5EURAbc5XKvUpQfU9OAivvUrvgRfo1IkBByHnRSlPqI=; b=ON43MdOEzrExFNRAil8vC9V6PX5A63ise9MYWnrWNY8HONgUeMM0Q3pjvYIBzuSbXP XW5SpXSvIIJtoqVmA9BkqX6StZvEtIq/PwWxZu45wd+GK4aWJQ3Q7nLOA0PdDOidmAK6 I2e4zirhPHiWs6UTUmjoqiq8G9l4l2ADozAc4NhAHZVjd5T1tszsj00ERn1M2LHUFVKi ATmWzkX7C2qdjoGu58mRJx5sGf6bSpRFzmwqxV2wBZesQZ+HiyYj7xN0jXLXOukAasb6 u4vyHECaEK5Qg/hDidPKGsEsW2Qygi6Z/IU293eyKmOPRqlDsleTQl37+Sk6/40KHumz Kkww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z75si974087pfd.119.2018.01.30.20.28.07; Tue, 30 Jan 2018 20:28:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752506AbeAaEUP convert rfc822-to-8bit (ORCPT + 99 others); Tue, 30 Jan 2018 23:20:15 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:35684 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751606AbeAaEUL (ORCPT ); Tue, 30 Jan 2018 23:20:11 -0500 Received: from mail-pg0-f72.google.com ([74.125.83.72]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1egjsY-000524-8a for linux-kernel@vger.kernel.org; Wed, 31 Jan 2018 04:20:10 +0000 Received: by mail-pg0-f72.google.com with SMTP id x24so9720667pge.13 for ; Tue, 30 Jan 2018 20:20:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=6K44yQuQEuCULGFFcOBb+LZ6BGMTp6O0zNwFOpPdqyU=; b=NDA65VkmgUIZ7KXjrpsPiUKINkuiN5kLovZlIz99vsc0H0V/pIc0mXJXN2tQ5S19b4 Zat6KyxDf+15O0UiY7WcFIHkg4DIQ8XzVa/LzF8wGv2b/XjVKN8sCt4VIKQ/GcnbQeE7 nG6e0KrUvJNHUQZJSE0u2HxWKVNVuOM5jXJ15pAi2VnvrvqF43qgt9O2JPYFedyWTzqA eHF5sjKkscMFu7anCBaVq3R2UlgjEDT4nE0j1ut4AP9on9nLwzc9ANGak+tRK+8c3Uh0 yCtIUO38i38UrdCoqMWvUCRdB3l+fcNfVxC3yfFL7LXN6oChKQEQV29elsLqXlkYet7x QyKg== X-Gm-Message-State: AKwxytfTJWAbPfwk/AJ9ijgC4h9PNgwvV1fOiLC4U7ykfowJ8+SlmA8P BsOMNs+GrYsjyg6q20Lrk7Fo3/fyFAGJ4jytngv8vp6w2huLEbtGh6rvhUpFyAU+/FDemUeMcuM 0rdysKCTNjTZhrMYvEM5DoBw4843l4vqycys0Vx8NZw== X-Received: by 10.98.162.10 with SMTP id m10mr32203934pff.168.1517372408973; Tue, 30 Jan 2018 20:20:08 -0800 (PST) X-Received: by 10.98.162.10 with SMTP id m10mr32203921pff.168.1517372408712; Tue, 30 Jan 2018 20:20:08 -0800 (PST) Received: from [10.101.46.95] ([175.41.48.77]) by smtp.gmail.com with ESMTPSA id y79sm36728194pfb.177.2018.01.30.20.20.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2018 20:20:08 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: [PATCH] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530 From: Kai Heng Feng In-Reply-To: Date: Wed, 31 Jan 2018 12:20:04 +0800 Cc: "Rafael J. Wysocki" , Len Brown , ACPI Devel Maling List , Linux Kernel Mailing List , Mario Limonciello Content-Transfer-Encoding: 8BIT Message-Id: References: <20180130060744.19049-1-kai.heng.feng@canonical.com> To: Andy Shevchenko X-Mailer: Apple Mail (2.3445.5.20) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 31 Jan 2018, at 2:17 AM, Andy Shevchenko wrote: > > On Tue, Jan 30, 2018 at 8:07 AM, Kai-Heng Feng > wrote: >> The i2c touchpad on Dell XPS 9570 and Precision M5530 doesn't work out >> of box. >> >> The touchpad relies on its _INI method to update its _HID value from >> XXXX0000 to SYNA2393. >> Also, the _STA relies on value of I2CN to report correct status. >> >> Set acpi_gbl_parse_table_as_term_list so the value of I2CN can be >> correctly set up, and _INI can get run. The ACPI table in this machine >> is designed to get parsed this way. >> >> Also, change the quirk table to a more generic name. > >> +static int set_gbl_term_list(const struct dmi_system_id *id) >> +{ >> + pr_notice("%s detected - parse the entire table as a term_list\n", >> + id->ident); >> + acpi_gbl_parse_table_as_term_list = 1; >> + return 0; >> +} >> #endif > > The above should be outside of another #ifdef. Basically after the above #endif. Right, I overlooked that. Thanks. > >> #else > >> #endif > >> @@ -1005,7 +1034,7 @@ void __init acpi_early_init(void) > >> * If the machine falls into the DMI check table, >> * DSDT will be copied to memory >> */ > > It might make sense to adjust comment above that it's about quirks in > general. And, if needed, move current content to actual DMI group of > records. Thanks for the suggestions. I’ll address them in patch v3. Kai-Heng > >> - dmi_check_system(dsdt_dmi_table); >> + dmi_check_system(acpi_quirks_dmi_table); > > -- > With Best Regards, > Andy Shevchenko