Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp603894ybm; Mon, 20 May 2019 23:50:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVe3mcFPbyq2/HwccoY/Pif5bl/uzzQdS+e72cWYe6S08Tube8KwrdDYw3eEahA1Cpn1Qy X-Received: by 2002:a63:1512:: with SMTP id v18mr28770547pgl.69.1558421439112; Mon, 20 May 2019 23:50:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558421439; cv=none; d=google.com; s=arc-20160816; b=HcffMtvUIJj9j7J9NB1L0Gd0UwuNCi7Uy1dSetmTWL6tRfxEIQHHm1NBXg0o+UomwK hOZORPwW24r/Wzf6RbvUgmxelR/Q2YLqTko7YbjgyEF7xA62YRmqzoPbYzq/Qvf+LkUu S/QjeFi8ScZ1V2kJjqeFD9TfVhHJpJM0TMb9AKhCx5z2PfSQPc1RrMmZzTC/3IZKndgY /FzeYLRsBiftSodbUn5V9cXSsaGQ0bx67pBl78TbXyEJ3+CR4mSb4/WPUDzOtP0j2mBn f4ACOavB4CO28E0OhV/HsAnMXJlKndDZSY69L1qLtBQVwxhz4HFsNlV4q2WO1n3APL7X p8Hw== 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; bh=EX+RbZ2QuclOpIncZJaA9lb0b+yqy0TQx8yZ2oQxaGo=; b=mf5sBAq2nj5q2WRM8IBgMDCMN9lSNNoRQtdvxqZ4Pn3GeLwG+LVygX9J28BsYmWxyo 6X7IeiKtu8nElCZGSilmxk3ty+AwSMnQvGotk2tnOSbQN6/W45HHW0kuXEsv/JOLmQxA XMfOeEMMOpkEJMkYX2LoB7CwRvtlrqrl3DaQwJ67h7Sxl6n8AJcT2U76WoQeM4uHgd3R 3hBsdsrgAtkW/1zib91shAzcfIQTo7yeCAAtip+nRb9lB12HECQtEljrKX9kQj7L5nx5 WTDbhqdvgxK+ukqwgfRZyr2isHpdmC0g4WCpjv2JAJJh+gfL2uyECD/X27RDxbDPT1ML PPxA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i40si20133435plb.315.2019.05.20.23.50.23; Mon, 20 May 2019 23:50:39 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726429AbfEUGtU (ORCPT + 99 others); Tue, 21 May 2019 02:49:20 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:38016 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726193AbfEUGtU (ORCPT ); Tue, 21 May 2019 02:49:20 -0400 Received: by mail-qt1-f195.google.com with SMTP id l3so8475166qtj.5 for ; Mon, 20 May 2019 23:49:20 -0700 (PDT) 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=EX+RbZ2QuclOpIncZJaA9lb0b+yqy0TQx8yZ2oQxaGo=; b=pKhnnwBbtqAcjqr+fcNhFu04tOUo1mgrX2WhegDG3jYXfeTBvxVrVpqryNYzEAL7eu UclUT55JLAP6O5PogEhYgXacbIIZbea6rS0i0MYtsM/tQaZ/vBE4RNUnhyP+9T8LIhht 10KlKJ7aJ4Paav0Bt3kYhslIPiL0sX64K0x7zQguZ2b0wUexM8oTcjOzKH32Ig0GQVFT L+zmqCwckAkVAP2G9wcavwZHzvPeDh5fUeGmcuTEIilLo8P4j/rclLs96rwpUCq5HmtG vWz+K2nrzyi4lw/xu5vPunuk1dHqQfAq4UgkTC/v6FPg/DYekYTYjbsp9hKZNKDie4RM t2mQ== X-Gm-Message-State: APjAAAUqL6INFbNRleHqOOvZlFpP16eCG6O9rFp81DiVSBj97/nfe2WZ WXghMX97WGsxoirN1qdj1wZD5eY3hhRajonDu8fO0qUEAU8= X-Received: by 2002:ac8:1a59:: with SMTP id q25mr67748115qtk.154.1558421359749; Mon, 20 May 2019 23:49:19 -0700 (PDT) MIME-Version: 1.0 References: <20190519072711.2592-1-aaron.ma@canonical.com> <20190519072711.2592-2-aaron.ma@canonical.com> <20190521050850.GC183429@dtor-ws> In-Reply-To: <20190521050850.GC183429@dtor-ws> From: Benjamin Tissoires Date: Tue, 21 May 2019 08:49:08 +0200 Message-ID: Subject: Re: [PATCH 2/2] Input: synaptics - remove X240 from the topbuttonpad list To: Dmitry Torokhov Cc: Aaron Ma , "open list:HID CORE LAYER" , lkml , Christopher Heiny , Andrew Duggan , Hans de Goede 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 On Tue, May 21, 2019 at 7:09 AM Dmitry Torokhov wrote: > > Hi Aaron, > > On Sun, May 19, 2019 at 03:27:11PM +0800, Aaron Ma wrote: > > Lenovo ThinkPad X240 does not have the top software button. > > When this wrong ID in top button list, smbus mode will fail to probe, > > so keep it working at PS2 mode. > > > > Cc: stable@vger.kernel.org > > Signed-off-by: Aaron Ma > > --- > > drivers/input/mouse/synaptics.c | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c > > index b6da0c1267e3..6ae7bc92476b 100644 > > --- a/drivers/input/mouse/synaptics.c > > +++ b/drivers/input/mouse/synaptics.c > > @@ -140,7 +140,6 @@ static const char * const topbuttonpad_pnp_ids[] = { > > "LEN002E", > > "LEN0033", /* Helix */ > > "LEN0034", /* T431s, L440, L540, T540, W540, X1 Carbon 2nd */ > > - "LEN0035", /* X240 */ > > According to the history this came from Synaptics through Hans, so I'd > like to make sure there are no several X240 versions floating around... A quick google image search showed that the X240 had 2 versions: one with the top software buttons, one without. And this definitively rings a bell. I am sure we asked Lenovo and Synaptics to change the PnPID when they would do such a change, but they "forgot" during the *40 series refresh. We have code in place to fix the reported ranges of the coordinates, and we had to check against the board id (see min_max_pnpid_table[] in synaptics.c). Unfortunately, X240 (LEN0035) is not part of this table, so I don't know which refresh of the board ID has implemented the non top software buttons. Cheers, Benjamin > > > "LEN0036", /* T440 */ > > "LEN0037", /* X1 Carbon 2nd */ > > "LEN0038", > > -- > > 2.17.1 > > > > Thanks. > > -- > Dmitry