Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3237668pxp; Tue, 22 Mar 2022 15:16:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7qtlnTjtxiGFpOfLCu5HrQQBfdP5HZiV2z/AhjR6TjPvsPlFzirDPy4+vWouZVFneQbyt X-Received: by 2002:a05:6402:280f:b0:419:4c6f:a91b with SMTP id h15-20020a056402280f00b004194c6fa91bmr10460478ede.84.1647987387714; Tue, 22 Mar 2022 15:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647987387; cv=none; d=google.com; s=arc-20160816; b=fnJO2ARuFOP3KXzjqvIr7lgl055Tt4hyZjCpS+gBs+4cZt9hLGzxEB/AB2QsxpYHCx CrR2bdZ93+M5DaJaidc9ZfRGMSDXSur9Wqgkph/xBSAqQsltBo+RPvWTD/xZPMwfmkLp 7xkyrv09091RKV2UfcQjkNr0CKe0Uns1P41YuXOZPfAtzyN8PBfQ07kWSdrLzrVYBTm8 MtxCuvc0BhFYzD2E+IsdkdhIMZfruIhUV/7qPxLODMIqbNMexvBuCuIGDP2GMubD79Pf uSf+HFkwZLAGDneFaeYaDYi/YVBCfY+BulKtz66nKOgeppMtk6WiQ1urO7uJJPjYVrTi Ytqw== 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:dkim-signature; bh=9+UC/u0PtbhZRKj2jRfChXJZesydUtyvw1SAh08In7c=; b=dUCrIRWCnGVBrJM6e5mDMmTjdIJgK2hanhcwO+G8nN/kfvK2ea10zYJ9rfpiTNXx4J 2NuZd63eMNiSYhRe1WeflDqzMzPFccDve9BpeOJ24GvUcWDc1GALnym+Tnv4A1DflvLF eoQ22YFO586xx29/aIbNPR2NSmmsUfrhz9GhOC/SqDbyJOy0SeIVST6YauUZ5UMPQCbw tBKOYE1nmMD/Mqu9wkfoHbbMyYqvUmavzLs9z0ITV1q0nIHNL8KFGi8JvpMVXKw6fSZC ACTsJC/nqyvO2AiP8nXqHo0R7UobN/yhf/sUXzaik/6A1XY31ZcMXoDWT4ESnZa+qAfd /cTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="i5swd/M1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a17090620c300b006df76385d9bsi12954422ejc.571.2022.03.22.15.16.02; Tue, 22 Mar 2022 15:16:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="i5swd/M1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232818AbiCVLQt (ORCPT + 99 others); Tue, 22 Mar 2022 07:16:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbiCVLQs (ORCPT ); Tue, 22 Mar 2022 07:16:48 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C2C727DAA7 for ; Tue, 22 Mar 2022 04:15:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1647947719; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9+UC/u0PtbhZRKj2jRfChXJZesydUtyvw1SAh08In7c=; b=i5swd/M1rZ+0vVvBO5B/j0hsn0TivLa1CZVshusv2AmLW0yXytKIHUld2zrjzQOBcgGrKm R2kmawj0UjVnh4D30C6rpDTFprgAVjnxdLJDZV8kjthP4m19Ccfw5KPaAc+XzetjM4CiYu lKBlMTlCwaQL9IRDTZhzGN4edbh0IRE= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-79-NmZIIGm0NW6Zx2rH4l8CdA-1; Tue, 22 Mar 2022 07:15:18 -0400 X-MC-Unique: NmZIIGm0NW6Zx2rH4l8CdA-1 Received: by mail-ej1-f71.google.com with SMTP id 13-20020a170906328d00b006982d0888a4so8454258ejw.9 for ; Tue, 22 Mar 2022 04:15:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=9+UC/u0PtbhZRKj2jRfChXJZesydUtyvw1SAh08In7c=; b=bZ0NYl9TueJTyrQGP99NvunnHg2rKwkc+G0IPNOvs1vAAbo+2vR+DN3Fayc/LrMjBp gqWvVzjhPIM8XVJ4khlohLLW736BznG1mbsIhQgbX+0OxuqdG7hWMmy4gokk0EFazbbo 23gmSTr1t4GHCliQcF2q7gQy9sJb5hsZmIvx4Jko92G+m7g1DXxyrzYP62qyD1LeIwtw 8tItE24DAkzozqS19chBXkVBkwjM+HmRqqQt9sdJMync83YiNfWhV5aYA0iCsP4en7h6 4d8e4z9RIqknQZ/J+1GR48JbWFufWAKPoDcHD2s3ksXlDmAU+vWbiETcPpK9scc1VkFL dsDA== X-Gm-Message-State: AOAM530KpyDVdXGv0QxQR3RRPlOcj35ZNfW9fFpZlatmUCIKDHcM16pY h6w+j/oj9hZlWOQFgPuq41tJ5xyjo8L1uTU2PY2G+IxAcjmzJ2XOygNsoWcxiIAu8jgeILiWhkv gynNdP0IkTZcDETj7wwPe7/oV X-Received: by 2002:a17:907:6d0d:b0:6db:f0f8:654d with SMTP id sa13-20020a1709076d0d00b006dbf0f8654dmr25117726ejc.304.1647947717428; Tue, 22 Mar 2022 04:15:17 -0700 (PDT) X-Received: by 2002:a17:907:6d0d:b0:6db:f0f8:654d with SMTP id sa13-20020a1709076d0d00b006dbf0f8654dmr25117698ejc.304.1647947717179; Tue, 22 Mar 2022 04:15:17 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:cdb2:2781:c55:5db0? (2001-1c00-0c1e-bf00-cdb2-2781-0c55-5db0.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:cdb2:2781:c55:5db0]) by smtp.gmail.com with ESMTPSA id qa44-20020a17090786ac00b006dbe1ca23casm8117781ejc.45.2022.03.22.04.15.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Mar 2022 04:15:16 -0700 (PDT) Message-ID: <30340bc0-3a75-cccc-ed98-f80f3ce94627@redhat.com> Date: Tue, 22 Mar 2022 12:15:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH] Revert "Input: clear BTN_RIGHT/MIDDLE on buttonpads" Content-Language: en-US To: =?UTF-8?B?Sm9zw6kgRXhww7NzaXRv?= , jkosina@suse.cz Cc: tiwai@suse.de, benjamin.tissoires@redhat.com, regressions@leemhuis.info, peter.hutterer@who-t.net, linux-input@vger.kernel.org, stable@vger.kernel.org, regressions@lists.linux.dev, linux-kernel@vger.kernel.org References: <20220321184404.20025-1-jose.exposito89@gmail.com> From: Hans de Goede In-Reply-To: <20220321184404.20025-1-jose.exposito89@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi, On 3/21/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 Thanks, patch looks good to me: Reviewed-by: Hans de Goede Regards, Hans > --- > drivers/input/input.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/input/input.c b/drivers/input/input.c > index c3139bc2aa0d..ccaeb2426385 100644 > --- a/drivers/input/input.c > +++ b/drivers/input/input.c > @@ -2285,12 +2285,6 @@ int input_register_device(struct input_dev *dev) > /* KEY_RESERVED is not supposed to be transmitted to userspace. */ > __clear_bit(KEY_RESERVED, dev->keybit); > > - /* Buttonpads should not map BTN_RIGHT and/or BTN_MIDDLE. */ > - if (test_bit(INPUT_PROP_BUTTONPAD, dev->propbit)) { > - __clear_bit(BTN_RIGHT, dev->keybit); > - __clear_bit(BTN_MIDDLE, dev->keybit); > - } > - > /* Make sure that bitmasks not mentioned in dev->evbit are clean. */ > input_cleanse_bitmasks(dev); >