Received: by 10.213.65.68 with SMTP id h4csp748528imn; Fri, 6 Apr 2018 08:14:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx483c+hLGLN9MrZcfK6yUl3TV5GsCM2om8i2c4n7qiBNw3hgGs44xFKGpZO0Mi0ET/Ob7USm X-Received: by 10.101.96.141 with SMTP id t13mr18342084pgu.222.1523027690150; Fri, 06 Apr 2018 08:14:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523027690; cv=none; d=google.com; s=arc-20160816; b=nZsq9UiLeGlE9dv08y7w+riIW9uL3/uZgJnHj9xzvVUsNz4a9cBQRqfjIfcPcTAxGv gRVIAHCro1F8PcC3TkBFaH4Z2tK6N+43nST+Jepno9RUnzxmZrmyKrfPg7bOXLh/T1Fc 3fZuh9Ovu6RfFJr3yG4safLgK9s0cJEszGD/9S+/Hxv1zcaCuUPaIuhvGgI9bMr9+ie8 XlyDRnaMSGYPJpbvRIK8tzjJvptORsTXq9mCN2QUyTChV/Vspp7Ba6qqbIzZIHkkyg62 CY/z+Klh/rfC4QvC0LRB2MbI8hJKZZLIsAyhqJNbgl+fCsqbZMybvmGsJu6Xn2BqTk9V 0jeg== 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=86/IeWjXUaNB2eWuEVnvh2Prhb5ENQeJ5oVih7doVEs=; b=SmSrd+mJMskfcewr8xbO79NzwK8kTdYuqzdnT28D47yWW3iMz9TqQzZqZYywvXDBGB CXtFbkJq6JHQDBTVps7ZoFJ4dbXRfksGCOT6NhdAflvYiwHHxWjGFzN4mFmbcQ3Er2mt MZjewHm4UtleyuQ0ufQDWSLTLYF+098CxRMYA6gGfHcCNSzVP5VjcUtaqpCxxh1YuP+e BP8mGzx8BsDcXJ9Hhr2RWg6WE3tMdWjZNGyuLuC244oi0HFcri+SZwq08XH4OPAHBgiq uqGVJphMfFV6NQGLfqzSKgcrsuKMiRx9N+vpz6gtgCndmd7WvfAYEbxa62+/FSMtFaFK 2L2A== 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 z131si7423517pgz.184.2018.04.06.08.14.36; Fri, 06 Apr 2018 08:14:50 -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 S1754554AbeDFN3H (ORCPT + 99 others); Fri, 6 Apr 2018 09:29:07 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55614 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754537AbeDFN3F (ORCPT ); Fri, 6 Apr 2018 09:29:05 -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 4DD44CDB; Fri, 6 Apr 2018 13:29:04 +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 3.18 86/93] Input: i8042 - enable MUX on Sony VAIO VGN-CS series to fix touchpad Date: Fri, 6 Apr 2018 15:23:55 +0200 Message-Id: <20180406084228.943644700@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084224.918716300@linuxfoundation.org> References: <20180406084224.918716300@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 3.18-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 @@ -712,6 +712,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"), + }, + }, + { } +}; + /* * Some Wistron based laptops need us to explicitly enable the 'Dritek * keyboard extension' to make their extra keys start generating scancodes. @@ -1124,6 +1138,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;