Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3375778pxb; Tue, 19 Apr 2022 00:39:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjEm1YrDD0OSka/sc4+n02QYdQeQwHg3lm/C6fdwA9fWEjVnVQrZDY4N9VLc9H/44a5DcV X-Received: by 2002:a17:906:2f97:b0:6ce:3ef6:94be with SMTP id w23-20020a1709062f9700b006ce3ef694bemr12725196eji.136.1650353987290; Tue, 19 Apr 2022 00:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650353987; cv=none; d=google.com; s=arc-20160816; b=oPi8mc0ZJVceZALzJN0hMwTTWbAqBOzByVKskx3nGYLCFrllcvQbgLjAOKOb583OAr mTJyJahTKpEBfdxDC4NJEv/PQQgn+Qehuk/rx1iQvTxcHJNvcHRZww1vqzMJ8lwps+vF vIk6Clb8HGud+BE8bLWSCRBy4MMjkYaA1G3HzudH9aR/jjYe5u+cy3fFfTjRA/XSaDGX 3dcbcCqNdkTszN4xXRb6oxeimwo1szs3tGlkqWQTnn31/NykLXwhs8uXkPO0HIBiaHyF VFuJUCKcpIt5pd1g3c1CC6vam7BUJx2IzARdztRaXsTXpyWqITLdWB8bqb+ezHHrJCcU Q/dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bldX+5q2VJqGA41hHH1sBRDwLledy1WxtVBY1GZqPxE=; b=chy4gz8X57I8gEAJ3gapjGctvfYEJaKRkNgw7uoIs0CcghjUjqPdDFfzp0mnlY8gFh 722ocGJxOWcEw2PoWJehptTjtYwbNUGRegnP2FXb6bGd58oVRf0liSaSnpRzTEvY7YWo yaXy3eMN5IHKALc0mUPeKdvoAhFBZBD1FpgboWKDLP6kqih5nWOBSX/d3WARWUkPGlq6 m+oV1kfy81hhkmOccrqPkwPvAFzlfViagyMTUDhm6OTIjDES6FffWJHDFnuvOX8slZr3 BFyTl/g+1dy301fpInkgIRh4uqypginjzD9likMQSLAYeyBAmV63lFTgRLqjTToSEGWg z1GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VADiWZC+; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a170906944e00b006e7f908e9d6si8675965ejx.615.2022.04.19.00.39.22; Tue, 19 Apr 2022 00:39:47 -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=@linuxfoundation.org header.s=korg header.b=VADiWZC+; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243461AbiDRNlU (ORCPT + 99 others); Mon, 18 Apr 2022 09:41:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242605AbiDRNJP (ORCPT ); Mon, 18 Apr 2022 09:09:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5D9135DF4; Mon, 18 Apr 2022 05:48:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D8973B80E59; Mon, 18 Apr 2022 12:48:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 488DEC385A1; Mon, 18 Apr 2022 12:48:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286121; bh=dVNejMXjJk3oR17huPBy37qYuDa6sLu0pwHocqLu2mc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VADiWZC+4xZBG8O9IAUUIw4SqurNT3d+qb6ZdjZvBSg4pX/9SupFOqNgWof41Ya/i ej18jH8vGQn9RyGY+yAAoICVidMKp6Qhv6fQqfwCOxe63LK0SsFI8GgsQesRQzFEE6 F3Ng8QSs6CzJeUN0MAa9kKTdR2kWVaAaGL3OBmUo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= , Hans de Goede , Peter Hutterer , Benjamin Tissoires , Dmitry Torokhov Subject: [PATCH 4.14 034/284] Revert "Input: clear BTN_RIGHT/MIDDLE on buttonpads" Date: Mon, 18 Apr 2022 14:10:15 +0200 Message-Id: <20220418121211.665171937@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 From: José Expósito commit 8b188fba75195745026e11d408e4a7e94e01d701 upstream. 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. Signed-off-by: José Expósito Reviewed-by: Hans de Goede Acked-by: Peter Hutterer Acked-by: Benjamin Tissoires Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20220321184404.20025-1-jose.exposito89@gmail.com Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/input.c | 6 ------ 1 file changed, 6 deletions(-) --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -2120,12 +2120,6 @@ int input_register_device(struct input_d /* 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);