Received: by 10.223.176.5 with SMTP id f5csp241031wra; Tue, 30 Jan 2018 10:44:25 -0800 (PST) X-Google-Smtp-Source: AH8x2250C7e/fHI1BKBCfoQcOOW94bTAqwCZ8EfAyKi1WA0VS0gdTHPyr96TVfVq+OuwRb8Kzk3J X-Received: by 10.99.104.200 with SMTP id d191mr24531368pgc.98.1517337865641; Tue, 30 Jan 2018 10:44:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517337865; cv=none; d=google.com; s=arc-20160816; b=T6Ieu4bNHi2IN1TcXeSSYacbVJ00iCYpR21rN/4vDMTG6363GyeuM1PqL14ik+SCfe Wzsu0oKT6oBqNNfN8xGaiQRPeg5sHq0KYat61ARdfED7mmxMNRRzEvggF+H+UHhPrUaP xlHF4xbAbMOW8biHN3sDV0lUJMnArv9WqkGLiAAmxbhoohWf2LlmsIEu0t17BZOGGsuM 1/PhaRgpz0EN6C27SObGoyNnzWd8bA7k08Y1zop/KpG8eZxFDMaSibSf1ubLffuV3EZ0 /IJFAo0lhIIFaO4UVsH1exIQr6pcrpMMnazYrhtZquq8DCUjUu4Cnv/cmZgkZm9iWrDs fYNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=bjwQxGVMz57w1GRFE41Rx29R/7NXi6itT5B4dS3gxKc=; b=PBLBodbbNixo+z+zufbpZfoKyM8CUC5beCCZ/MCj/xwet5lUp53flBSCDlJ/m2Wvor AsyiBlvWMwOTz3JtBPLTNsgydvL/+JJxpeTXiCXCwZJpKfgldZKwWhS7+6rnovUHslyA Gx2VhtV7WoBsliHIB4wiBVaCrVT75NwW/nRnorK24SfwO7JUdadhYlcoeSgXcHa4aDDo PdRjbSxOyZ1/zcyGW/FY7Y66zYVhgxBZxwoXYBZZjYwJKhnj89AOdnzP5K7bPsU4r626 t67h29EYF892Wfx4ETZGD782lVcoWW80aGSnhrD1K9GFOQXZTfH4WbQDlbxFPb4S0agu AUCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DxW3+A7s; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si2088700pgr.795.2018.01.30.10.44.11; Tue, 30 Jan 2018 10:44:25 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DxW3+A7s; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752867AbeA3SR7 (ORCPT + 99 others); Tue, 30 Jan 2018 13:17:59 -0500 Received: from mail-qk0-f182.google.com ([209.85.220.182]:36479 "EHLO mail-qk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751410AbeA3SR5 (ORCPT ); Tue, 30 Jan 2018 13:17:57 -0500 Received: by mail-qk0-f182.google.com with SMTP id d21so11331149qkj.3; Tue, 30 Jan 2018 10:17:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bjwQxGVMz57w1GRFE41Rx29R/7NXi6itT5B4dS3gxKc=; b=DxW3+A7sDqdu6Eoapt0V2H3aaNL9mo/cjcNgfXk+SE+pKFBWRz6lenuRBuWbrnsRqu cuvb/ozbhBFY3oYhk+PYqJGkF30xhpxSeqhJRW27fJxi6yp9SnHNI0ORAJqsiYdSdSFi MEzpjqJoGDSvOFr08Q4dP0AyJc2g6tE3eWt+Bh9ZEIFCyc9o6oPELBFYguWUPcSCz1QI DCMaFbud7whq+q0r6cBJ1UJIp4YKDXq0GC7hL/Ip1JV7BNQlT0kIRUEYAx1Ywhi8tdBQ TNlXzwVnWSSdbxcDJo3pTvp65vh63HhnG1r2OFGgAIt/535vM+gfwgWIoxrRVtI0iCk0 JY9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bjwQxGVMz57w1GRFE41Rx29R/7NXi6itT5B4dS3gxKc=; b=Av0Lkp3FkZHptteGIAyIuAdfWCgquB87f74V63Przrduvq4wDxhSAw1qV6htQy13Zx 0PjG1hNqjW5ZlshIVcZkyv2c0LIsP84x8SSvtmed7Fzc+G1iXXoUbT8sMPpCg0eZUvKD Cxg10/293Rzf0QfXdYctl/duAmPDUAWmHcxN2mlFQpxhicvHYKqv5Mvu9lQ4MD1ddLjJ gmFOE2Ccs5+MXK3nVEw6jpMTuvIDu8umncvJ3NgEX6EwR1HgfR73kq+D1tRox6mejcpL 3hPVlFjVf5gJbReBOqs9gZSRUx12J35tFxlgLzPpuk++rsTn54DTbjXwwuwKLQ2I1OIw poEQ== X-Gm-Message-State: AKwxytfb9qgA6wuWeVUw9+DTbwtYnP+ipQcOXkYmKBgNS60MBeenBNow kTc3Nl9vXqcP34o9bI7iPALnul9Rg0Uth+0EP/m3Hg== X-Received: by 10.55.120.66 with SMTP id t63mr42027450qkc.345.1517336276600; Tue, 30 Jan 2018 10:17:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.175.35 with HTTP; Tue, 30 Jan 2018 10:17:55 -0800 (PST) In-Reply-To: <20180130060744.19049-1-kai.heng.feng@canonical.com> References: <20180130060744.19049-1-kai.heng.feng@canonical.com> From: Andy Shevchenko Date: Tue, 30 Jan 2018 20:17:55 +0200 Message-ID: Subject: Re: [PATCH] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530 To: Kai-Heng Feng Cc: "Rafael J. Wysocki" , Len Brown , ACPI Devel Maling List , Linux Kernel Mailing List , Mario Limonciello Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > #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. > - dmi_check_system(dsdt_dmi_table); > + dmi_check_system(acpi_quirks_dmi_table); -- With Best Regards, Andy Shevchenko