Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp718872pxb; Fri, 14 Jan 2022 14:56:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJz55y27XhogOiOHs6vQRQLYSh6PBWiltH1Z2jXJ2hlh8oE7JuGFJneIdvTGrPbEggwIRNSO X-Received: by 2002:a17:902:7446:b0:14a:27dc:917 with SMTP id e6-20020a170902744600b0014a27dc0917mr11375797plt.116.1642200995512; Fri, 14 Jan 2022 14:56:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642200995; cv=none; d=google.com; s=arc-20160816; b=jHU7OGAos6c1FWp2glOuEeOAs/E3Avb2QiDp/ThP0D1dHOLeetALiYjw6Cyk1fYOCv 68Ox9+oDU/qMV1NtB8T8isFI4qO7HtDx2Qh4zC5y641IFASi2tjeYoN6A0bs1M7EorhW MuHkykmY8+KlytX27D7YSsMM6T/qumu9ZhUNjpCio90JX0MU0wJs/6MzqYlRNEQmMbEb 6sKD1O5ba9BueQD8yqUA4/mWt6KlP9yx0lPrntXAAC4ewOXFnIpJ7plEink8E12PxEax 1a7jQf1cQaynQ6JHdoKNH4HVa2ivSPKeubiLGG9z6NHd1MluQpAHXdjuddgoSKPc1yEa b/WQ== 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 :message-id:date:subject:to:from; bh=QU4suo1v33Vh3tjXmoA0rjfnk0nWWmfgRAtwNxH/MGA=; b=jRNgK/LCotYWhh4aTS46HXx1wuNcGITyNYEO4BCl/monbYQi2KoUfZJzYqvlpXBuMu 5LTBKtZDXS9ANKFWyAGt1wspuVtTZcu51Y5kNO6ysKp04zZ6uv2iGC/9hxUnd4JErpp2 7N8vBMP+VUGtBsPsZeED9oJf1WT2A/an20HYkqar12cICgddZ+4quukzIGa4798+hHVF et1d+RoHUfH5sAnwNBB3nXl/PvXK5nqBe3m5GPNb7O/tpihAamPpC6Lu7/aH+yIpWPyb MIp9q1zVWxdPfx8ZTOUXAXx05qh/haPILFv7nLEIvBxj+zTc+/k/aiiJwfLi0GKD1Gv7 oqyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si6918123pgm.64.2022.01.14.14.56.24; Fri, 14 Jan 2022 14:56:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239481AbiANRMJ (ORCPT + 99 others); Fri, 14 Jan 2022 12:12:09 -0500 Received: from srv6.fidu.org ([159.69.62.71]:47180 "EHLO srv6.fidu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235457AbiANRMI (ORCPT ); Fri, 14 Jan 2022 12:12:08 -0500 X-Greylist: delayed 694 seconds by postgrey-1.27 at vger.kernel.org; Fri, 14 Jan 2022 12:12:08 EST Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id 59856C800BB; Fri, 14 Jan 2022 18:12:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at srv6.fidu.org Received: from srv6.fidu.org ([127.0.0.1]) by localhost (srv6.fidu.org [127.0.0.1]) (amavisd-new, port 10026) with LMTP id 9NTNw1QoIz6q; Fri, 14 Jan 2022 18:12:07 +0100 (CET) Received: from wsembach-tuxedo.fritz.box (host-212-18-30-247.customer.m-online.net [212.18.30.247]) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPA id D1E13C80094; Fri, 14 Jan 2022 18:12:06 +0100 (CET) From: Werner Sembach To: dmitry.torokhov@gmail.com, tiwai@suse.com, mpdesouza@suse.com, arnd@arndb.de, samuel@cavoj.net, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][RESEND] input/i8042: Add quirk table to disable aux port on Clevo NS70MU Date: Fri, 14 Jan 2022 18:12:06 +0100 Message-Id: <20220114171206.682113-1-wse@tuxedocomputers.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At least one modern Clevo barebone has the touchpad connected both via PS/2 and i2c interface. This causes a race condition between the psmouse and i2c-hid driver. Since the full capability if the touchpad is available via the i2c interface and the device has no external PS/2 port, it is save to just ignore all ps2 mouses here to avoid this issue. The know affected device is the Clevo NS70MU. This patch add a new i8042_dmi_noaux_table with the dmi strings of the affected device of different revisions. The table is then evaluated like the other quirk tables in the i8042 driver. Signed-off-by: Werner Sembach --- drivers/input/serio/i8042-x86ia64io.h | 42 +++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h index 148a7c5fd0e2..48ad6247a1a0 100644 --- a/drivers/input/serio/i8042-x86ia64io.h +++ b/drivers/input/serio/i8042-x86ia64io.h @@ -1013,6 +1013,45 @@ static const struct dmi_system_id i8042_dmi_probe_defer_table[] __initconst = { { } }; +static const struct dmi_system_id i8042_dmi_noaux_table[] __initconst = { + /* + * At least one modern Clevo barebone has the touchpad connected + * both via PS/2 and i2c interface. This causes a race condition + * between the psmouse and i2c-hid driver. Since the full + * capability if the touchpad is available via the i2c interface + * and the device has no external PS/2 port, it is save to just + * ignore all ps2 mouses here to avoid this issue. + * The know affected device is the + * TUXEDO InfinityBook S17 Gen6 / Clevo NS70MU which comes with + * one of the 4 different dmi string combinations below. + */ + { + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"), + DMI_MATCH(DMI_BOARD_NAME, "NS50MU"), + }, + }, + { + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TUXEDO"), + DMI_MATCH(DMI_BOARD_NAME, "NS50_70MU"), + }, + }, + { + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Notebook"), + DMI_MATCH(DMI_BOARD_NAME, "NS50MU"), + }, + }, + { + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Notebook"), + DMI_MATCH(DMI_BOARD_NAME, "NS50_70MU"), + }, + }, + { } +}; + #endif /* CONFIG_X86 */ #ifdef CONFIG_PNP @@ -1336,6 +1375,9 @@ static int __init i8042_platform_init(void) if (dmi_check_system(i8042_dmi_probe_defer_table)) i8042_probe_defer = true; + if (dmi_check_system(i8042_dmi_noaux_table)) + i8042_noaux = true; + /* * A20 was already enabled during early kernel init. But some buggy * BIOSes (in MSI Laptops) require A20 to be enabled using 8042 to -- 2.25.1