From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kai Heng Feng Subject: Re: [PATCH] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530 Date: Tue, 30 Jan 2018 10:46:53 +0800 Message-ID: <8351B08C-C4C0-49F7-BA60-960D6A5E1FA6@canonical.com> References: <20180129061011.11214-1-kai.heng.feng@canonical.com> Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Return-path: Received: from youngberry.canonical.com ([91.189.89.112]:37885 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752076AbeA3CrA (ORCPT ); Mon, 29 Jan 2018 21:47:00 -0500 Received: from mail-pf0-f198.google.com ([209.85.192.198]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1egLwp-00023B-6t for linux-acpi@vger.kernel.org; Tue, 30 Jan 2018 02:46:59 +0000 Received: by mail-pf0-f198.google.com with SMTP id e185so8872580pfg.23 for ; Mon, 29 Jan 2018 18:46:59 -0800 (PST) In-Reply-To: Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Andy Shevchenko Cc: "Rafael J. Wysocki" , Len Brown , ACPI Devel Maling List , Linux Kernel Mailing List , Mario Limonciello > On 29 Jan 2018, at 8:56 PM, Andy Shevchenko wrote: > > On Mon, Jan 29, 2018 at 8:10 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. > >> +#ifdef CONFIG_X86 > > Why do you need separate #ifdef? > >> +static const struct dmi_system_id gbl_term_list_dmi_table[] __initconst = { > > I think you can just add new items to the existing table, while renaming it like > > dsdt_dmi_table -> acpi_quirks_dmi_table Thanks for your suggestion, this is a better approach. I’ll address them in V2 patch. Kai-Heng > > -- > With Best Regards, > Andy Shevchenko