Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp791802imu; Fri, 21 Dec 2018 07:26:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/V4+5vXTqXPptc8I60QR8Ai+LUuyWiJr4al716MegWzXSVIgygRgyLJWwkG8/9bcEwXVsoW X-Received: by 2002:a62:8a51:: with SMTP id y78mr2961239pfd.35.1545406007255; Fri, 21 Dec 2018 07:26:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545406007; cv=none; d=google.com; s=arc-20160816; b=TY9vsphC9w4igC32BwlnDpTOVNa98Fzsg+7F4cX8n/gkpTNf2R8ZPAht7EuiJsAQez yH7GYh8DOkFfaxbwJndVTF0JQ7c0JycXR94sSOX6W8hkFo2YDY5phFR6ysA1q+9I7opo CbNhwQ1pyH3n0602Zcu02giHWexGErhExclfJLqv1GP7Hthi1PQWZ10X4ArhXxiT3ahF QTnQE7piG96gTfPx7TvzhoBHq6nT1brpEXmODII/XR8fitie5TPAPvoOgOjnEJ1ikFws eFjT7I1nNJ4vDgKyAkBlrP8FqwmIU8wTMArtQKkLI3px6z6W69aXC8DK9FZlnq4wCD5M yfvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=60UGiVLaQW6OiQuT3/1ilh/3XKvPECs3Du2KsC9Ux8M=; b=QWhLrHlphQCVNrxYCIHS3SgKLAKdmBGPmIk4q9IXPMYFcUF4c69zV0mHqLgX2OUTix YPTgEJgGdowt47wJ1PxURvyS/xd9vBKBxjXo548UDhWD0Wto894ks7QrwKTCZMa/4/im RP0gcBxjsNdH8NJ1qdbipmWX3Lz85W26L7B147aT6dXGixxJtYTJMB8HHuRpNZ4X7bqR TJSHhahiL4iR5lXhnL9HUqlxppaciFGz4Pz+Z4Dj5JAg+iWieKd/fDlYAJy4lLtp2AGy eR16d/806dp39Bz2Tw7m/2kjHlOjNhdZ3PrAS+MrfXz1F6LFjPqMpLcjYZhh3B5pAPkI xW4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fXjLReqk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j186si9697785pfb.174.2018.12.21.07.26.31; Fri, 21 Dec 2018 07:26:47 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fXjLReqk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388216AbeLUInd (ORCPT + 99 others); Fri, 21 Dec 2018 03:43:33 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:34733 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733220AbeLUInd (ORCPT ); Fri, 21 Dec 2018 03:43:33 -0500 Received: by mail-pf1-f193.google.com with SMTP id h3so2291312pfg.1; Fri, 21 Dec 2018 00:43:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=60UGiVLaQW6OiQuT3/1ilh/3XKvPECs3Du2KsC9Ux8M=; b=fXjLReqkfdu4O82ytsH0aFHKFamZqdKSB1pClSLgCmU3y4IxWffNzluLToCCG/Oi4C joIOoTmExHLohNsYnjWD7I8cMeiqityGB1/oyL0Zh+g4vxYNBLxtjnAZIHHEd/3zwEbS W9prNASOoSuuC2UkN9PdJLj9SYlfmGFyh5VwNLrnm99FExmg3cRYT7fDg+iBVi5kJwHP Qt+Zzr1uswkNPnl0ltAOAcrWIyN50I7Bm0vGSqaOjLReHoFqtwhFXArdn6okUWEdlaYO ZTX3qbrBWfdtAFFB9M/QdBgDxOVQ2sqmBjN++inMiUwf359I19roM52YEXkhqzS0Pelh i6og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=60UGiVLaQW6OiQuT3/1ilh/3XKvPECs3Du2KsC9Ux8M=; b=MPKARcp5s34axxhKJcC0tiNemuy6kb9vSfpOP/ChgYfERimks9wEg7C2GJdOkj4Lfd 7Xmw56jwPSKhCX9RbaO1YglRF+DydEvsGioZDb/EM/6U67U8W/Nim3EPJCDrb7fehhLY TUMFSsAdmpiUcDXlEGKNs9ccRK5RJ9i49NrR1985vjwqlaKA/2FPkEnBiZeaR32D2MmR bXgXy94wsCAC+6JR1cDFsJqYruMKm12a9WBOQUX+z5S82HnrBi/BeWdVh5OQ3Qayy96j E+CEK/zxtVOdR8xqGTsXC9xIQ9YXZLV0vMeVhm2H9Ak3n3O1V1udTQoydQdm2OR+B4xO juKA== X-Gm-Message-State: AJcUukcl34kNuMRrUUJna9Z6/7bhQESwBTYUfLNpR3TcXVtKaCD3QiqY IBFvyfV9v2FKcpOpbG68Jk0= X-Received: by 2002:a63:d005:: with SMTP id z5mr1559834pgf.64.1545381812065; Fri, 21 Dec 2018 00:43:32 -0800 (PST) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id i73sm34610839pfi.66.2018.12.21.00.43.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Dec 2018 00:43:30 -0800 (PST) Date: Fri, 21 Dec 2018 00:43:28 -0800 From: Dmitry Torokhov To: Peter Hutterer Cc: Benjamin Tissoires , kt.liao@emc.com.tw, Aaron Ma , Kai Heng Feng , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] Input: elantech - Disable elan-i2c for P52 and P72 Message-ID: <20181221084328.GH211587@dtor-ws> References: <20181212154205.24025-1-benjamin.tissoires@redhat.com> <20181218081343.GA4701@jelly> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181218081343.GA4701@jelly> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 18, 2018 at 06:13:43PM +1000, Peter Hutterer wrote: > On Wed, Dec 12, 2018 at 04:42:05PM +0100, Benjamin Tissoires wrote: > > The current implementation of elan_i2c is known to not support those > > 2 laptops. > > > > A proper fix is to tweak both elantech and elan_i2c to transmit the > > correct information from PS/2, which would make a bad candidate for > > stable. > > > > So to give us some time for fixing the root of the problem, disable > > elan_i2c for the devices we know are not behaving properly. > > > > Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1803600 > > Link: https://bugs.archlinux.org/task/59714 > > Fixes: df077237cf55 Input: elantech - detect new ICs and setup Host Notify for them > > > > Cc: stable@vger.kernel.org # v4.18+ > > Signed-off-by: Benjamin Tissoires > > Acked-by: Peter Hutterer Applied, thank you. > > Cheers, > Peter > > > --- > > drivers/input/mouse/elantech.c | 18 ++++++++++++++++-- > > 1 file changed, 16 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c > > index 2d95e8d93cc7..830ae9f07045 100644 > > --- a/drivers/input/mouse/elantech.c > > +++ b/drivers/input/mouse/elantech.c > > @@ -1767,6 +1767,18 @@ static int elantech_smbus = IS_ENABLED(CONFIG_MOUSE_ELAN_I2C_SMBUS) ? > > module_param_named(elantech_smbus, elantech_smbus, int, 0644); > > MODULE_PARM_DESC(elantech_smbus, "Use a secondary bus for the Elantech device."); > > > > +static const char * const i2c_blacklist_pnp_ids[] = { > > + /* > > + * these are known to not be working properly as bits are missing > > + * in elan_i2c > > + */ > > + "LEN2131", /* ThinkPad P52 w/ NFC */ > > + "LEN2132", /* ThinkPad P52 */ > > + "LEN2133", /* ThinkPad P72 w/ NFC */ > > + "LEN2134", /* ThinkPad P72 */ > > + NULL > > +}; > > + > > static int elantech_create_smbus(struct psmouse *psmouse, > > struct elantech_device_info *info, > > bool leave_breadcrumbs) > > @@ -1802,10 +1814,12 @@ static int elantech_setup_smbus(struct psmouse *psmouse, > > > > if (elantech_smbus == ELANTECH_SMBUS_NOT_SET) { > > /* > > - * New ICs are enabled by default. > > + * New ICs are enabled by default, unless mentioned in > > + * i2c_blacklist_pnp_ids. > > * Old ICs are up to the user to decide. > > */ > > - if (!ETP_NEW_IC_SMBUS_HOST_NOTIFY(info->fw_version)) > > + if (!ETP_NEW_IC_SMBUS_HOST_NOTIFY(info->fw_version) || > > + psmouse_matches_pnp_id(psmouse, i2c_blacklist_pnp_ids)) > > return -ENXIO; > > } > > > > -- > > 2.19.2 > > -- Dmitry