Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3290980imu; Mon, 7 Jan 2019 00:12:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/VRH7+ygrFBmLa+cPD9bHz3pv5zXNbcC5F0bBDg4s2NRM8lwF47m/uwfJUpO7p948K2iiAF X-Received: by 2002:aa7:8354:: with SMTP id z20mr61324023pfm.81.1546848749762; Mon, 07 Jan 2019 00:12:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546848749; cv=none; d=google.com; s=arc-20160816; b=CQXenqAXh8t+PyWz1ZkLMTJfI3utJ0J7KIGY/C1D4HsKDAW3uAHeR/DUzyP16DQat3 5XbMJQgvgydB7sX2gNetJPkZbIMIa3n9zwE12AYpuIbcX/ofYTF0uKJrZsA3FDAXTzFL 7UIpH3ZsyykOeX6L4Ela5HrejTeLwTqLW4FgvaioRHu4XiUmMgol81SBNIV8TT3IUDGC nPTETIxrNOFkNDTD6YKLbJTISQkyulfb/f74YFnDqahVeOR0Zy47MtYaT58TnwAF63Uq zy2zNyL9t2iSACyEss3wQjJPmht0ZvLSKVCJjpi6V4qWGcGbk+eaF06Om9bIdHq3en6E Tokg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=dfNcB/FJ0jWZ/OQCvx8g6qL6cE/r6nHp6ge5Fq+96/4=; b=ClHYQwlqDvRmF7AyKZNd9d1CTIGq4Iz0sV2ETqdEg4eWBEinLBWij92ZbETp+y/6ez LCM9FfROiExMkNBKF93OcH47HJpb6TVYy9O6JFMGNvg8rXT5YLM7Yq8jtNPnOpu9tael 4U0UbTWS1T1D1J7XxIg4YQ8UNsiXd92njImB6UWJbPgvGaBBtRvvyz9wi7MgjK9Tooc7 PcU/a15A/T7B2i1Nlv9KacKI+nFZ7sJ9Ez55vCyaEJ0Z5e+faS22GFBMMV9cLlZD7qH4 uUchnN/zgPa1oxKdXzRXsbmOwChhW37em9apCK7n1SiMS7aLQqWpUZcVkK+b1G4j/Jbx A37w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s6ytryo4; 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 r25si1251866pfk.28.2019.01.07.00.12.13; Mon, 07 Jan 2019 00:12:29 -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=s6ytryo4; 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 S1726518AbfAGH7C (ORCPT + 99 others); Mon, 7 Jan 2019 02:59:02 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:33077 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726257AbfAGH7B (ORCPT ); Mon, 7 Jan 2019 02:59:01 -0500 Received: by mail-lf1-f65.google.com with SMTP id i26so29467692lfc.0; Sun, 06 Jan 2019 23:58:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dfNcB/FJ0jWZ/OQCvx8g6qL6cE/r6nHp6ge5Fq+96/4=; b=s6ytryo4z/5t8GoOh9tJymQfupyPefIcYyqnzjABYHM7hF03ma8b39IekEDWXZ8zwJ VaZl96UXeJtJTRjAFto0NwW0Pin2iZMJteNfgzBoOYzC9jnYBQ9KnzCgb2jaeMXUSOWe gfBwP+bTl1C8A4sp9Ra7J5H5y1rXY4OO54bG6zoI7cGkYOxgS9Y9e/XrZAMvcUNEz1Oy 1ID78bOcPzkBVVc4fWc8RaeMafpyBPJ8q94O6tCuJSzkGYEJrxwqmttQ7fddZfVKVJp8 hUI2pL5zmxlIqKCbcuaJXv2MGge+GnUI6S6Mi7RQq5Bo5rrtMoSyI0D0krX6llAAIUzo 1yHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dfNcB/FJ0jWZ/OQCvx8g6qL6cE/r6nHp6ge5Fq+96/4=; b=McnR5hLcn2Fu4OJ36272cH0lKtkhA2mujKolCo9lLDacQDMoTXWHW0zuGnwq0FbP9P 0rxLAGnZkh5hINrC0wKdeajc62VKR7Fo47Vrma768YkSEc3MfNNNeiegdhIUscn0CLvb k7xwox0khgINwneYdawZjXnt18BI9nDHeTVK1WYRZB9h9H1KXoS8KwgPodmthG8IxRGP Pvfj8SBP/lz8oivIwlbNC96DIOyvp7QHJQwK29c+2m31VSIWos+e6dyK5i1bNSzdCJV+ Fzw+i3mhNhDWiUz9wvcJy9Nxjw4GUhfFVVKZWDT80TeaPL5FGZjsjuJ4nEJob6qThACU En/w== X-Gm-Message-State: AJcUukcE6bGPjE1pGUez74/atg6nRIpUnnukvJY5jO2szkdwXOS6PYeD xs+2UWZKv6zwLMY4pMTM9WBY+K74mfsVtrtdf+M= X-Received: by 2002:ac2:51af:: with SMTP id f15mr5198476lfk.44.1546847938660; Sun, 06 Jan 2019 23:58:58 -0800 (PST) MIME-Version: 1.0 References: <20181228175327.14863-1-kaelinphilipp@gmail.com> In-Reply-To: <20181228175327.14863-1-kaelinphilipp@gmail.com> From: Benjamin Tissoires Date: Mon, 7 Jan 2019 08:58:46 +0100 Message-ID: Subject: Re: [PATCH] Elantech Touchpad: Fix Elantech touchpad and trackpoint for Lenovo ThinkPad notebooks. To: Philipp Kaelin Cc: Dmitry Torokhov , linux-input , linux-kernel@vger.kernel.org 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 Hi Philipp, On Sat, Dec 29, 2018 at 6:35 AM Philipp Kaelin wrote: > > Initial situation: > - The touchpad of a Lenovo ThinkPad L580 doesn't work with newer kernel versions eg. 4.20 > - It used to work on earlier versions eg. 4.14 > > Cause: > - The elantech driver was adapted in to support SMBus wich not all firmware versions > of the elantech firmware support. The SMBus is used as default. > > Solution: > - Previously a blacklist was introduced for devices which doesn't support the access using SMBus. > The ThinkPad P52 and P72 have already been fixed by adding it to such a blacklist in a prevois patch. nitpick: you are using "prevois" instead of "previous" :) > The exact same solution fixed also the issue on the mentioned ThinkPad L580. > > Change: > 1) The firmware id of the ThinkPad L580 was added to this blacklist. > 2) To not have a half baked solution the information which firmware versions are using the same driver > and therefore most probably have all the same issue was extracted from the Lenovo Windows driver package. > All these firmware versions are now also added to the blacklist. > > Risk assesment: > As in prevois versions of the kernel eg. 4.14 none of the devices used to be accessed via SMBus > (and they are reported to work at this time) it's quite safe that this blaklisting doesn't cause > any harm on devices which have not been testes but included in the blacklist. > > Signed-off-by: Philipp Kaelin > --- > drivers/input/mouse/elantech.c | 23 +++++++++++++++++++---- > 1 file changed, 19 insertions(+), 4 deletions(-) > > diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c > index 9fe075c137dc..e5fa8cfd8393 100644 > --- a/drivers/input/mouse/elantech.c > +++ b/drivers/input/mouse/elantech.c > @@ -1772,10 +1772,25 @@ 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 */ > + "LEN2131", /* Walter-3 w/ NFC ThinkPad P52 w/ NFC */ > + "LEN2132", /* Walter-3 w/o/ NFC ThinkPad P52 */ > + "LEN2133", /* Chiron w/ NFC ThinkPad P72 w/ NFC */ > + "LEN2134", /* Chiron w/o/ NFC ThinkPad P72 */ > + "LEN2037", /* Lando w/ NFC ThinkPad L580 w/ NFC */ > + "LEN2038", /* Lando w/o/ NFC ThinkPad L580 */ > + "LEN004F", /* Storm w/o/ NFC */ > + "LEN005C", /* Storm w/ NFC */ > + "LEN2030", /* Carling */ > + "LEN2031", /* Bell */ > + "LEN2032", /* Bell-2 */ > + "LEN2033", /* Storm-2 */ > + "LEN2034", /* Storm-3 */ > + "LEN2035", /* Solo w/ NFC */ > + "LEN2036", /* Solo w/o/ NFC */ > + "LEN2039", /* Leia */ > + "LEN2130", /* Kylo (Clamshell) */ > + "LEN008F", /* Kolar w/o/ NF */ > + "LEN0090", /* Kolar w/ NFC */ That is quite a list. My initial idea with this blacklist was to keep it short and fix the initial issue to be able to remove it entirely (or at least on the devices we can test). So 2 questions: - do you have the commercial names of the various PNPId you are adding? - are you able to test all of those? Especially if we get the SMBus driver fixed? I am fine adding the patch as a fix for 4.21 and backport this to stable, but I still intend to fix elan_i2c for the next cycle (4.22) so I'd like to know if we can safely test those machine later on. Cheers, Benjamin > NULL > }; > > -- > 2.19.2 >