Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8400802imu; Fri, 28 Dec 2018 17:35:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN4gHEs5W+c/pfpUTkgN2Ci/IpnWDqUFqy5K+7fYSwQaVthdoPdb3hrklwaXgzDFE3htGI0O X-Received: by 2002:a63:c503:: with SMTP id f3mr194919pgd.431.1546047343577; Fri, 28 Dec 2018 17:35:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546047343; cv=none; d=google.com; s=arc-20160816; b=DbPVUNKnF9kFARmAiqtvaKEI40kIN94nagvkzDE1rLUuv3Xd3gSNuMWa/69jVIObvX 06FEGFWZwtTYH1RBYHaSy+2iLaFKBtEr8ZYTFqQC/XlfCetDrNxZw6/HU7r3eniFqk4Z o9CkmQ0G+E+QsEcdoIVP23C/tJiz5wXKYBkL6uKlYFdTEODZ84Tk2d4pU01wpN7Fms0Q FmXX1WvI+7EqYZ+fOraWWqT2wCnMN4EpTQ0w5Bh1y5QXbOhwikP9luknILg+OrWcHzAj jLcRa6Kg5E/5E52sxnPTSP8vy2ERdA4yJBmPme1T+P0NlkX87SQB62HxC4v1WXbNIUIV W8Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=I476dXzolvS36Jo8keWAqI+uNVpug96GEqSAmmxEOBM=; b=Ed/hvDYMVv1fHgUPJV6adf6O7m0uApnwj1YQIRYh3vlKZ9quZ1an7DliLumQzYJiZx s+V/1NAwXsg+63N7zNAp+gAQFzHeal6la0b2ahmBKjP2DtwKGe+RO4fTbge5/+pDwLtw a0tTSm1qZNqGd1v1LlGAOv41ziR4UaF1AiZ4bp1WacEiUb1cdzFT1f912wYsBW52U3nT wjqFQivYJsdvHB2Sm8lunYhch4WuP9OM3caU3vTJKAmtgckkG4PWxUyoYF23mPzYvxxp 3amv+yVwHUYgNghSFWu1BslYWks7hE4vJY6idT+UVYiKQ3tHlndAl9OAb269IR97mi7r 23CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X6qhHIPc; 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 h20si38368824pgm.366.2018.12.28.17.35.28; Fri, 28 Dec 2018 17:35:43 -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=X6qhHIPc; 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 S2387600AbeL1Rxe (ORCPT + 99 others); Fri, 28 Dec 2018 12:53:34 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:41621 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729898AbeL1Rxd (ORCPT ); Fri, 28 Dec 2018 12:53:33 -0500 Received: by mail-ed1-f65.google.com with SMTP id a20so11300014edc.8; Fri, 28 Dec 2018 09:53:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=I476dXzolvS36Jo8keWAqI+uNVpug96GEqSAmmxEOBM=; b=X6qhHIPcmynvX6WXNf8TQbRGT5b97pOPe+7NTxz+tNxhXZDxqzAKD1dyjlAmsvSDPl TMiE2OnBAgPD5dCoOJOxkdFI8qeoq19BywD73NqqHgzMMyD9Fa3IDTO5RWAZRy6kNkRe NPF4V3pxnWAiDFvaL8B6ltiKSkPcOSHSg42s94c1RMtzRPHyq8j2OjaO2fx/Aj6gfYHG jKF1tmGnIF5anVeGGyLDx54kHTBSNpEVqPMGUcxQt5Jo9ZJJJtfhaosfYNGE7kqd1fLp KEfdu9BBSY2CX+F1WxM4iJH0isgncFTjgohPSfOiNh6sCoYhZ7B0W+Q+lNWVWlKharEf 0vYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=I476dXzolvS36Jo8keWAqI+uNVpug96GEqSAmmxEOBM=; b=XF7niHp9hte/wB7W1miYkXrrNyT7Bs9dT00hXMaOPbe2sYhZJSJzbKg9/7vrA1sLNA IRdEMuQjZtMFlL032ptqVAcwzGJp7HJfuce7V3Oj/OATzAILbht+9fWVeqvh6JYTs9EB mNh41aBaNFiBWXht4cjOeLRdj/vVn39xDzj+96cZMUNz4AfMMvqCafzuXFNIFPuF9dxd turOTwSZHq8wHVJVo5CLPMtbjus6VGMrzvP3CRwKo3xr3rXZm3AF+W7jhVICmwZwE1xK iRPqs/W2kKrv1Y1R280YKvW/umsU22GRvBjacom9zoUOCPOUjSqjVRabJy0gPAnBzuro 9yOQ== X-Gm-Message-State: AA+aEWayi//ygnHSuAiGXJxDXMrEwhESNQ0OX8UD3APmIA4kpwLjvhq/ wopTKk04T0qIWY5mW1N6WvWxUXMJZ3M= X-Received: by 2002:a17:906:d41:: with SMTP id r1-v6mr19309835ejh.186.1546019611291; Fri, 28 Dec 2018 09:53:31 -0800 (PST) Received: from manjaro.fritz.box (adsl-84-226-151-28.adslplus.ch. [84.226.151.28]) by smtp.gmail.com with ESMTPSA id p22-v6sm7207665ejf.48.2018.12.28.09.53.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Dec 2018 09:53:30 -0800 (PST) From: Philipp Kaelin To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Philipp Kaelin Subject: [PATCH] Elantech Touchpad: Fix Elantech touchpad and trackpoint for Lenovo ThinkPad notebooks. Date: Fri, 28 Dec 2018 18:53:27 +0100 Message-Id: <20181228175327.14863-1-kaelinphilipp@gmail.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 */ NULL }; -- 2.19.2