Received: by 10.213.65.68 with SMTP id h4csp650127imn; Fri, 6 Apr 2018 06:46:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/uh3UeBWANhFinKkzARfI9ffUbAmW/wzLQn1lZ4hdgMVyDHJxvBCKUGqwPVDU5lKcCOvn5 X-Received: by 2002:a17:902:7482:: with SMTP id h2-v6mr27744199pll.264.1523022387526; Fri, 06 Apr 2018 06:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523022387; cv=none; d=google.com; s=arc-20160816; b=i9IVw7GEnALdbB1vjdW/hP/3GH4yPQ36hdVY5JfmSD8bMwSYmX8mCCzHFSmqhIfTZw ZZfhtrFuXDK5IU4+vWnR6L7SuWvdaDXvz70fyd3mY25F3q8OFhmHFJIzsHppxyatgmA+ TQZ7SZDvuvOpjnrp1m5e1rBp2CKyYCN2QD5psTrz6Vm3uKwRGXPZER2uLpG14hOhWtwo pHVLRAJjMnCG195cUzyQ0YyFer/E4n0rfHGX4b1SQBimmp4rN9sVWo9QpAUES/5fo7sw T0iq5zcWx5xjPvc+Gy3RQyblIDrsjumy+Tn6WKJ8s3kJ7rlq7tPh/YCTgui3NbWsapvm T+lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=lFHDp9tkQ3VSN3i0jrvfSTiKyLMktg/yXqMFICAbpaE=; b=STW8+YpG8J3unH1/PT9emvua9WHhOKBfZ8iDvjJNzmzRmT1KgF0LxzcA3Q9QEYB/ZG AJvs9x1kfQdg7V+Kzfpg2VhGFTlmjxF/1ykFMPvcDtrXpzkJn5QtbRvU3a92j4z4F7lu q/PDImmGwd79ENCTqstmr0rUrZdrGCek8Oi16EuKVEeyXh7EKATxq01ijVd/X4tgoA3V CDsJoSPp32EcQ+H5d0Kcrr6WavbxdgyVWrlHgiCEH93DywUlkkiQMGNfrMpy3RaAbyON pn+jVTJkrFuHxxZRcxLvE1SdCXBgti59NU1uEIfA/28l2yWZRY5ofrNX4uhwl+y7GnqN Ft0Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g24-v6si10934946plj.40.2018.04.06.06.46.13; Fri, 06 Apr 2018 06:46:27 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756958AbeDFNpN (ORCPT + 99 others); Fri, 6 Apr 2018 09:45:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38002 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933040AbeDFNpK (ORCPT ); Fri, 6 Apr 2018 09:45:10 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C3A8EE08; Fri, 6 Apr 2018 13:45:09 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ondrej Zary , Dmitry Torokhov Subject: [PATCH 4.16 28/31] Input: i8042 - enable MUX on Sony VAIO VGN-CS series to fix touchpad Date: Fri, 6 Apr 2018 15:24:53 +0200 Message-Id: <20180406084344.761649889@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084340.999820380@linuxfoundation.org> References: <20180406084340.999820380@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ondrej Zary commit 04bb1719c4de94700056241d4c0fe3c1413f5aff upstream. The touch sensor buttons on Sony VAIO VGN-CS series laptops (e.g. VGN-CS31S) are a separate PS/2 device. As the MUX is disabled for all VAIO machines by the nomux blacklist, the data from touch sensor buttons and touchpad are combined. The protocol used by the buttons is probably similar to the touchpad protocol (both are Synaptics) so both devices get enabled. The controller combines the data, creating a mess which results in random button clicks, touchpad stopping working and lost sync error messages: psmouse serio1: TouchPad at isa0060/serio1/input0 lost sync at byte 4 psmouse serio1: TouchPad at isa0060/serio1/input0 lost sync at byte 1 psmouse serio1: TouchPad at isa0060/serio1/input0 lost sync at byte 1 psmouse serio1: TouchPad at isa0060/serio1/input0 lost sync at byte 1 psmouse serio1: TouchPad at isa0060/serio1/input0 lost sync at byte 1 psmouse serio1: issuing reconnect request Add a new i8042_dmi_forcemux_table whitelist with VGN-CS. With MUX enabled, touch sensor buttons are detected as separate device (and left disabled as there's currently no driver), fixing all touchpad problems. Signed-off-by: Ondrej Zary Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/serio/i8042-x86ia64io.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) --- a/drivers/input/serio/i8042-x86ia64io.h +++ b/drivers/input/serio/i8042-x86ia64io.h @@ -530,6 +530,20 @@ static const struct dmi_system_id __init { } }; +static const struct dmi_system_id i8042_dmi_forcemux_table[] __initconst = { + { + /* + * Sony Vaio VGN-CS series require MUX or the touch sensor + * buttons will disturb touchpad operation + */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"), + DMI_MATCH(DMI_PRODUCT_NAME, "VGN-CS"), + }, + }, + { } +}; + /* * On some Asus laptops, just running self tests cause problems. */ @@ -1170,6 +1184,9 @@ static int __init i8042_platform_init(vo if (dmi_check_system(i8042_dmi_nomux_table)) i8042_nomux = true; + if (dmi_check_system(i8042_dmi_forcemux_table)) + i8042_nomux = false; + if (dmi_check_system(i8042_dmi_notimeout_table)) i8042_notimeout = true;