From patchwork Mon Oct 17 23:00:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcos Paulo de Souza X-Patchwork-Id: 9380845 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DFEDA60487 for ; Mon, 17 Oct 2016 23:01:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9B982904B for ; Mon, 17 Oct 2016 23:01:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD9D12918E; Mon, 17 Oct 2016 23:01:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6CBE2904B for ; Mon, 17 Oct 2016 23:01:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935148AbcJQXBd (ORCPT ); Mon, 17 Oct 2016 19:01:33 -0400 Received: from mail-qk0-f193.google.com ([209.85.220.193]:34760 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935061AbcJQXBQ (ORCPT ); Mon, 17 Oct 2016 19:01:16 -0400 Received: by mail-qk0-f193.google.com with SMTP id n189so15398843qke.1; Mon, 17 Oct 2016 16:01:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=/1KZq6JGOQtZ3mgA61tmQmELm1U0KLsTNzygwFw7zg4=; b=kLHFHhiJOfRS3ViklSV/iVdtZA8H4E5D6c33Lhpjyil8xribHoWhVE7d5cEVsz5of+ WLlpopkJ5zytw1y06MHXY4J2XFJBgJ5k3VpNyc/5sBUZQ2KpbgB98sfSUAIhKxFpiCXT pR0aL8c/NZmocrZzlIEFmfBIsFtz6LfTD2KqH0dANoIVfrkmOuhYxE6GM0023TqCz0eD xQuVF+hB5bQOFOlXYAW/9iugXbAaWXsyAWQhB60zW1Ed3AmmWHVNmea9E6uc6TQjGDKO N2vDzYu+gdLmKWToH/ww8NFDV7ngk1ESEownPxoJ8ryUEqUSI22hSpr11LESn9rlFGXQ u6qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/1KZq6JGOQtZ3mgA61tmQmELm1U0KLsTNzygwFw7zg4=; b=fq4PMT65StaKDUHVl4IZ3UKmIu+ip3jkW/Ltemi3Uwoi4ZodJ2Q1/5iTq7UOa9t9g2 PMMZFbG+PrndrKquKSBnrpq8RPF9k2czepxJtk8uzWyLWjsRExlXBfG70T+hMB9TxoJl 2TcMeCgmVjGXoMoilsSFL3XOqL8dLG5q6Ji/ANsK3KFVKRevNOj+zQrzqu9zww6CUNwx fhl+EOSto88dGKIPrCp1s5sEQIKKMXFsS5mrluVzWzKvNv+IqQ5ZWUfuvOa+FW57ZHAF yTU/vuUxk00IHXbdn/S8pHi95QrhjboG05mg7v0muuB+aYDwRSLqHPjrP3/wiWkOwjK+ 1N5Q== X-Gm-Message-State: AA6/9RkA9ll8QevcAhYxnVp7WkE5xVVEGWg04uuyZn65GOquVkwQia7Qpb5GLux/ydnlTA== X-Received: by 10.55.98.75 with SMTP id w72mr29928203qkb.91.1476745257287; Mon, 17 Oct 2016 16:00:57 -0700 (PDT) Received: from localhost.localdomain (179.187.206.99.dynamic.adsl.gvt.net.br. [179.187.206.99]) by smtp.gmail.com with ESMTPSA id e185sm73996qkd.13.2016.10.17.16.00.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Oct 2016 16:00:56 -0700 (PDT) From: Marcos Paulo de Souza To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Marcos Paulo de Souza Subject: [PATCH -next] input/i8042: Use chassis info to skip selftest Date: Mon, 17 Oct 2016 21:00:48 -0200 Message-Id: <1476745248-4601-1-git-send-email-marcos.souza.org@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Instead of relying in this model zoo. Signed-off-by: Marcos Paulo de Souza --- Another way to fix would be to use just model prefixes, like X455, rather than X455LDB, for example. I don't know which one is better, but AFAICS in some bug docs: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1490130?comments=all https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1504445 In both cases, the chassis info is 10 ("notebook"), so it may be the case in other cases, or not... Anyway, let's push this to -next to see if anyone complains. drivers/input/serio/i8042-x86ia64io.h | 74 +---------------------------------- 1 file changed, 1 insertion(+), 73 deletions(-) diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h index f4bfb4b..b42787e 100644 --- a/drivers/input/serio/i8042-x86ia64io.h +++ b/drivers/input/serio/i8042-x86ia64io.h @@ -517,79 +517,7 @@ static const struct dmi_system_id i8042_dmi_noselftest_table[] = { { .matches = { DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_MATCH(DMI_PRODUCT_NAME, "A455LD"), - }, - }, - { - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_MATCH(DMI_PRODUCT_NAME, "K401LB"), - }, - }, - { - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_MATCH(DMI_PRODUCT_NAME, "K501LB"), - }, - }, - { - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_MATCH(DMI_PRODUCT_NAME, "K501LX"), - }, - }, - { - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_MATCH(DMI_PRODUCT_NAME, "R409L"), - }, - }, - { - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_MATCH(DMI_PRODUCT_NAME, "V502LX"), - }, - }, - { - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_MATCH(DMI_PRODUCT_NAME, "X302LA"), - }, - }, - { - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_MATCH(DMI_PRODUCT_NAME, "X450LCP"), - }, - }, - { - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_MATCH(DMI_PRODUCT_NAME, "X450LD"), - }, - }, - { - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_MATCH(DMI_PRODUCT_NAME, "X455LAB"), - }, - }, - { - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_MATCH(DMI_PRODUCT_NAME, "X455LDB"), - }, - }, - { - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_MATCH(DMI_PRODUCT_NAME, "X455LF"), - }, - }, - { - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), - DMI_MATCH(DMI_PRODUCT_NAME, "Z450LA"), + DMI_MATCH(DMI_CHASSIS_TYPE, "10"), /* Notebook */ }, }, { }