From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AIpwx490arHqzJd+2SUr67ugwl1HjX//wdxw62C9VmBP4doHZ56XF08/FDTyATtJLCmV8thD/AfJ ARC-Seal: i=1; a=rsa-sha256; t=1523021994; cv=none; d=google.com; s=arc-20160816; b=Zjt+dwlCaxDWVq4+QZ0qp5rkzv+shoRVKYHPIVZtc7V6S8k8bectOADZPxjj3VQapY zHFx+tRYH0c4K1kMgbvyn1j7+wyzT6YpuBKOd/X+JJV1qv0q9W9BF959liy/ffFpb97P 7ThO7zGQr9KokijAzoLjUgz41WUZh6L8lhNCiKb4xulBiyrVrw5RXhS+J1y3FMgJk3/f 63+QWpsSUyRR1KfpJqitXJKX7deMBZQjE8Dv+xJ7W/TZC95paHHF5ZLFKJHCkok0A92I LLN2siqE31xpPCuB8xVORYp3Wc+LM4uJwY6bB09d5Xz5Nn26mko+chYZ8ZWl5FpE/xz7 SoCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Ve3wjmHCZFhkSK9BHwZ17VDPZqDicem5ktJFDjDEEL8=; b=Ia3Amu5X3RG+IHfp+3YGh2kqei48g9OBod/bl+1Gb+TWA7gguUh9saPWp8BvMUXFYk rZKFiH/0GAq9tNt0LQEAFho08rAGG3Cme9CJTuyyBI0IfbEJyrCLVVZF6RP/LLmWHbX+ xQ7uMIRiA+PBG+LxeZH+owaIulxBZlZ5h4S/VIvb671MEWTPJFCbwVwZZ8HW6knaNeMN gihtvxE9JwcSNjXQ4Av2tx3liKYovHOQQelf1pNv3+RrexoktF1mfudI8RuFy/DlFEuI hYXGnPmgxukgSi3OVbie3fTvGrnX7jsc+I8wMntUwhay63cfgnbKrR6Zh2j/k9n5l736 72sw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning gregkh@linuxfoundation.org does not designate 90.92.61.202 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning gregkh@linuxfoundation.org does not designate 90.92.61.202 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org 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.14 59/67] Input: i8042 - enable MUX on Sony VAIO VGN-CS series to fix touchpad Date: Fri, 6 Apr 2018 15:24:29 +0200 Message-Id: <20180406084348.305394712@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084341.225558262@linuxfoundation.org> References: <20180406084341.225558262@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-LABELS: =?utf-8?b?IlxcU2VudCI=?= X-GMAIL-THRID: =?utf-8?q?1597003629992266331?= X-GMAIL-MSGID: =?utf-8?q?1597004311182122661?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: 4.14-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;