Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp933430pxb; Wed, 6 Apr 2022 04:42:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrzOy5+OZ+WKOPPDEahaBpvCIXnAhLi2tCWabAAIuWKY2E6VeuHGy6RaXgxoGVS861KBJe X-Received: by 2002:a17:902:ec87:b0:156:9eed:b7de with SMTP id x7-20020a170902ec8700b001569eedb7demr8051252plg.5.1649245352179; Wed, 06 Apr 2022 04:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649245352; cv=none; d=google.com; s=arc-20160816; b=UTrCY7rYVUnghPgvx2Vgp/8VikA0EnrDM0E8H0LnIJ+E/YIcFqfA9+6CL3QMk31TJX Vat0KVHw73231jWOVX3jlmswu2OSsDj5u+wPaRiUYRfRilrOGEJtZWX9ZQHAZHFfIPOj +yIVlWLgZHPoOMsAJbR0Pm67XCh7wkXqxPoh2nQmuD1vW3LedI1AW3NJHK9Ooi1eptnj UN56pLElK69uYdcVW3NC4WcPWMbr1YJ/0LEbrIS2uP3NjPmOU1krbaQHSLXESRN0Tb4N KM4dM6/OIun/H7/r78JmHKT4U91SlqTCd5mvhNcx2OMJAGVGNAuphlBSN8VPVabeAv1j 6zog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=lNF87nT0VusqBqWwI8lZATU+0fu6XUF2ueSkHcIi28k=; b=yLV+BtDOEjPwXlvSVnT5YlLZR0kkIT9j1ODBqNAayH+IcNMNolZfPqnTmPxS0+HLaz dSX/4MfF7BVCb7tolhDLuMThlayYvO3D4MtbxY3yBWLrSaYoBYXFv86CikUov6GStc5S 7lgBfxLOfOJDVKeFSZiFP7z7o4iTcSkQuKflqCVrvzd33MyyKDnQyoBhABLqJ374IecH V82Nj4spoTd6k+EbaPdJOZqML2jT4xMxE7xlVizzncDFSaCePrq6oWvMm2qao4i8DF3S rqWpCMMDlSXbAcQc96jOnmjf+DWDt+56LF3gOPvve5/RqN2YChFbDHz8VGP6+O1qi1xi O3wA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z14-20020a056a00240e00b004fa3a8dffb9si15714045pfh.112.2022.04.06.04.42.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:42:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 960301F99C4; Wed, 6 Apr 2022 02:59:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1839818AbiDFBF6 (ORCPT + 99 others); Tue, 5 Apr 2022 21:05:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348810AbiDEJsi (ORCPT ); Tue, 5 Apr 2022 05:48:38 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8234::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1422090FE4; Tue, 5 Apr 2022 02:35:54 -0700 (PDT) Received: from ip4d144895.dynamic.kabel-deutschland.de ([77.20.72.149] helo=[192.168.66.200]); authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1nbfbM-0002uq-9O; Tue, 05 Apr 2022 11:35:52 +0200 Message-ID: <4746cf3e-a9e7-4968-2695-22dd3356638f@leemhuis.info> Date: Tue, 5 Apr 2022 11:35:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] Revert "Input: clear BTN_RIGHT/MIDDLE on buttonpads" Content-Language: en-US To: Peter Hutterer , Dmitry Torokhov Cc: Benjamin Tissoires , =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= , Jiri Kosina , Takashi Iwai , "open list:HID CORE LAYER" , "3.8+" , regressions@lists.linux.dev, lkml References: <20220321184404.20025-1-jose.exposito89@gmail.com> <44abc738-1532-63fa-9cd1-2b3870a963bc@leemhuis.info> From: Thorsten Leemhuis In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1649151356;6ef4cca2; X-HE-SMSGID: 1nbfbM-0002uq-9O X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just a quick add-on note for the record about another affected device: On 31.03.22 06:38, Peter Hutterer wrote: > On Wed, Mar 30, 2022 at 09:13:30PM -0700, Dmitry Torokhov wrote: >> On Wed, Mar 30, 2022 at 02:30:37PM +0200, Benjamin Tissoires wrote: >>> On Wed, Mar 30, 2022 at 2:27 PM Thorsten Leemhuis >>> wrote: >>>> On 21.03.22 19:44, José Expósito wrote: >>>>> This reverts commit 37ef4c19b4c659926ce65a7ac709ceaefb211c40. >>>>> >>>>> The touchpad present in the Dell Precision 7550 and 7750 laptops >>>>> reports a HID_DG_BUTTONTYPE of type MT_BUTTONTYPE_CLICKPAD. However, >>>>> the device is not a clickpad, it is a touchpad with physical buttons. >>>>> >>>>> In order to fix this issue, a quirk for the device was introduced in >>>>> libinput [1] [2] to disable the INPUT_PROP_BUTTONPAD property: >>>>> >>>>> [Precision 7x50 Touchpad] >>>>> MatchBus=i2c >>>>> MatchUdevType=touchpad >>>>> MatchDMIModalias=dmi:*svnDellInc.:pnPrecision7?50* >>>>> AttrInputPropDisable=INPUT_PROP_BUTTONPAD >>>>> >>>>> However, because of the change introduced in 37ef4c19b4 ("Input: clear >>>>> BTN_RIGHT/MIDDLE on buttonpads") the BTN_RIGHT key bit is not mapped >>>>> anymore breaking the device right click button and making impossible to >>>>> workaround it in user space. >>>>> >>>>> In order to avoid breakage on other present or future devices, revert >>>>> the patch causing the issue. >>>>> >>>>> Cc: stable@vger.kernel.org >>>>> Link: https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/481 [1] >>>>> Link: https://bugzilla.redhat.com/show_bug.cgi?id=1868789 [2] >>>>> Signed-off-by: José Expósito >>>>> [...] >>>> >>>> Jiri, Benjamin, what the status here? Sure, this is not a crucial >>>> regression and we are in the middle of the merge window, but it looks >>>> like nothing has happened for a week now. Or was progress made somewhere >>>> and I just missed it? >>> >>> No, I think it just wasn't picked up by the input maintainer yet >>> (Dmitry, now in CC). >>> >>> FWIW: >>> Acked-by: Benjamin Tissoires >>> >>> José, please do not forget to add the input maintainer when you target >>> the input tree, not the HID one :) >> >> I see that there were several ACKs, but how many devices misuse the >> HID_DG_BUTTONTYPE? Would it be better to quirk against either affected >> Dell models, or particular touchpads (by HID IDs) instead of reverting >> wholesale? > > fwiw, a quick git grep in libinput shows 12 entries for disabling BTN_RIGHT > and 9 entries for enabling/disabling INPUT_PROP_BUTTONPAD. That's not the > number of devices affected by this bug, merely devices we know advertise the > wrong combination. > > Note that the cause for the revert is loss of functionality. Previously, a > device was just advertising buttons incorrectly but still worked fine. This > was mostly a cosmetic issue (and could be worked around in userspace). With > the patch in place some devices right button no longer works because it's > filtered by the kernel. That's why the revert is needed. > > The device could/should still be quirked to drop INPUT_PROP_BUTTONPAD but that > is only required to work around the cosmetic issues then. I anyone cares now or in the future: seems the patch meanwhile reverted (thx) also broke the ICL Si1516: https://bugzilla.kernel.org/show_bug.cgi?id=215771 Ciao, Thorsten P.S.: Any while at it, let me let regzbot about the fix as well: #regzbot fixed-by: 8b188fba75195745026e11d408e4a7e94e01d701