Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp600116ybm; Mon, 20 May 2019 23:45:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWfiCHfYKq/TgJkI07608eeMzIoSEjFOAnttS338UNayUb5zH9Diks/SjGZqFFn1vITTPg X-Received: by 2002:aa7:95bb:: with SMTP id a27mr74019758pfk.30.1558421134159; Mon, 20 May 2019 23:45:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558421134; cv=none; d=google.com; s=arc-20160816; b=GyI6Hsq4dwLzarxGJkW19IZQ2b+8T+MLykOpUjVX1AHxi8dDzyOoYWuC6GBNEQj9t6 Z/ptYZunLjAztF6HTvTF4uLNUtnJn+Bjya7LDwvsfzfpjkF5yFWLNI5MUsIEpY9XoJe/ hpVMSrrxczXScFBigf7hsKCdftVqTUnkm9ac2xQa13z8MddRq9ijLXsajYhi99X8kWzI Bv8vSBCXinsMDma9PsdlM+DtPGGvrOXw5Uy9lDVvxEpii2dft9JpoZ5XGdN7YLkLOT8Z nD8T7+PzozquUY3UdFrFKmbzvKLO5AL8sUoHRGIv0YM/7a77l1ZFqpUpVDXnRby2VINV keLA== 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=Gro6bYpyJjEyBjnoN8cxKbYz7QpgKEPbeHJeHV938fM=; b=bVnUPZXrkFkmJATIHGzaia5f4+/z78/Spt6z/SiS+MUQ/Ka9os07kZ1w9Y99uPnBmk IEFq/IXbcb1mHtAHKo9cQRiX7L0w39GETPQWPyfeN0xQks4N7+tEUEmMGlGPgZmuI9p7 Xls2t1iPPFqJIxKJD53DEyLRKz0YX32LYb3QGXm9fLfeN5+DiRYrJjG33nncQmVnI2hA iexdgfYcbZmbkdRM6NWkYEvIJbolzoafY4Izhl4fJKf6QWzaLFxPfAE0uEeoX5EGlatx +K/memXNr6eC7kaHXg+6F4jqcG110FnOhyM6an0cWm67sKtzc5wEFhCXS19+NzrW0fsd VdnA== 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 129si22668056pfb.270.2019.05.20.23.45.19; Mon, 20 May 2019 23:45:34 -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 S1726429AbfEUGnm (ORCPT + 99 others); Tue, 21 May 2019 02:43:42 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:35039 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726247AbfEUGnm (ORCPT ); Tue, 21 May 2019 02:43:42 -0400 Received: by mail-qt1-f193.google.com with SMTP id a39so19280684qtk.2 for ; Mon, 20 May 2019 23:43:41 -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=Gro6bYpyJjEyBjnoN8cxKbYz7QpgKEPbeHJeHV938fM=; b=o70lWBtNq+9lVO/+3WktlfA3Qcx5KEFT3di9wEW7mVBfZ/9MPxVh5FBvU/XhRYmKfT PMgfvDzZuIiyt5Mw7tLRPANDpOZhMIRPRbXkTJGNUWvH3W+piLE6+54p6JWM++F18pCi dPBuoQ+oV8JLzi9kE2idkuTmcrqWj3brLVUNFsF/y6AQpvU20GpeAdARz7Tp75rpK+PW r4+7LxbEUQ2mwADs+F/LNhQWFgY3h2lfZbBlQduNnEiq+0HJf/puBjyKvzHEP+YwKvR6 TNDA9U13K2hDxBQeWHJtOSHKSazJl1EtNBtDQBiJnsa9CqmQwqvv74qsvcM5R4o914ok Za6A== X-Gm-Message-State: APjAAAXllQ5rMgO0Ap09pr9yCBcsBd6qzWO4mj43Gz4mMqL2mavAkvdg 3XP5kFC+c/zc5QhUGI+P9JORzZqi7d6EtB2uR7yo3A== X-Received: by 2002:ac8:875:: with SMTP id x50mr65243976qth.345.1558421021479; Mon, 20 May 2019 23:43:41 -0700 (PDT) MIME-Version: 1.0 References: <20190519072711.2592-1-aaron.ma@canonical.com> <20190521051053.GD183429@dtor-ws> In-Reply-To: <20190521051053.GD183429@dtor-ws> From: Benjamin Tissoires Date: Tue, 21 May 2019 08:43:29 +0200 Message-ID: Subject: Re: [PATCH 1/2] Input: elantech - enable middle button support on 2 ThinkPads To: Dmitry Torokhov , Peter Hutterer , =?UTF-8?B?5buW5bSH5qau?= Cc: Aaron Ma , "open list:HID CORE LAYER" , lkml 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, On Tue, May 21, 2019 at 7:11 AM Dmitry Torokhov wrote: > > Hi Aaron, > > On Sun, May 19, 2019 at 03:27:10PM +0800, Aaron Ma wrote: > > Adding 2 new touchpad PNPIDs to enable middle button support. > > Could you add their names in the comments please? > > > > > Cc: stable@vger.kernel.org > > Signed-off-by: Aaron Ma > > --- > > drivers/input/mouse/elantech.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c > > index a7f8b1614559..530142b5a115 100644 > > --- a/drivers/input/mouse/elantech.c > > +++ b/drivers/input/mouse/elantech.c > > @@ -1189,6 +1189,8 @@ static const char * const middle_button_pnp_ids[] = { > > "LEN2132", /* ThinkPad P52 */ > > "LEN2133", /* ThinkPad P72 w/ NFC */ > > "LEN2134", /* ThinkPad P72 */ > > + "LEN0407", AFAICT, this one is the Lenovo P53. However, having a whitelist of new models is not going to scale IMO. I was thinking at submitting a patch to enable middle button unconditionally, but then I realized that libinput disables middle click emulation on touchpads with an actual physical middle button. And this morning I just realized that we might have a better chance at this if we consider the new models to have the physical middle button. I know LEN0407 attempts to bind over SMBus, so I would think we can reduce the set of whitelist by just checking for ETP_NEW_IC_SMBUS_HOST_NOTIFY (patch coming in). Cheers, Benjamin > > + "LEN0408", > > These should come first - I'd like to keep the list sorted > alphabetically. > > > NULL > > }; > > > > -- > > 2.17.1 > > > > Thanks. > > -- > Dmitry