Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp997607pxb; Wed, 6 Apr 2022 06:20:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlpy8NJDE0CPg8EFE3w4sx0oyTxs1Z7JFKmsM5MiZOVi8C9khuX3T5TvtCJAevtgBzjZVv X-Received: by 2002:a05:6e02:1aa6:b0:2c9:cfd3:5d0b with SMTP id l6-20020a056e021aa600b002c9cfd35d0bmr4221325ilv.38.1649251248547; Wed, 06 Apr 2022 06:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649251248; cv=none; d=google.com; s=arc-20160816; b=dqBlupG2MeH9WHVbXgXGjrTHhnELgDviyx0+qpJOFzv9ocv6WQYHcMES9bpvoxJy4u UclVSi4dC9JxWsaazse+BirG3Zlm+eLw3XNWIxNJh6lW17CLAweyhRtauHDagA89V+Wf glEXIQFghZjtuWON9t4uSgvln5yBE4Dm6kB8u3QdSF732Ch1/kf5lsPUim6O7XNsqxbR YyYy0IQPMUImIinM04aWQ08Q6tBKm9qoB/0qp3C51Q8YqzkOfxI7IBbb5WqYcUQ3eyzN eUfVkjUD47vlLIJ4v6W47AjhnF8L6jSxIRk1t+2p3/fQIutd/uqDmuv+f83DUZbzYvxK 1kzQ== 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=iW9jQ4D4w8YyuVjfMjmveDr8xL3GNy3aW6Qvu5yvROA=; b=WOAcVgi3bTGbjR8NCWCvv/DELq+b6leon1ZMPCpnekRvfe9M0d1s5WqZM1LNPGcI0B 25xSMWhLJXwPo19X86tkJuGrO6/Uw3+jDORK5w3u2og5VDdyxMiYVetLFZ7RDHbWBnhD izkdixGqb0VcvkoRsFDnnVe1Mhk6++cZ5UcuTvsWMk5evZM6zVZ0g7GUi7sRNaWW2XKq XGugUmlxUhmItGoKjkqYe62YHwXNaC9rN2oibs/lrkQbljxWm4RaIXtsWmaVkfjpKY9B o6WeePu0/0TrAROY/vqCSC8pL1beX4PlgJ3lk9sR7ahqSsnKLZ+xXy66FeQs5+5VzuZ7 cwQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Eu9ZBh5T; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id l2-20020a0566380d8200b0031a2a421621si9914794jaj.67.2022.04.06.06.20.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:20:48 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Eu9ZBh5T; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4E1655A959F; Wed, 6 Apr 2022 03:57:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390703AbiDEWEY (ORCPT + 99 others); Tue, 5 Apr 2022 18:04:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354890AbiDEKQa (ORCPT ); Tue, 5 Apr 2022 06:16:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F154D13D09; Tue, 5 Apr 2022 03:03:29 -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 A7423B81BC0; Tue, 5 Apr 2022 10:03:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2042BC385A2; Tue, 5 Apr 2022 10:03:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649153007; bh=JYK4yYmxxNHgDv07Zrecz68AmrIqH+sR9RKYuvJdm1E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Eu9ZBh5Tk811ICPl0N4/lw/rmd+xN1O4cSzIKTGgZMaQobDUBNny1d6JmW5//rDLV 0yCOTQKwZZEbNin+O76nv0F8YufinG5hOqSLltB2mISV67kVylSm18y+UXcQKYKBZ8 8vedA1T/WzisD4RQprtXybl8T9q3iS66AFG4uJtQ= 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 5.10 067/599] Revert "Input: clear BTN_RIGHT/MIDDLE on buttonpads" Date: Tue, 5 Apr 2022 09:26:01 +0200 Message-Id: <20220405070300.820802423@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070258.802373272@linuxfoundation.org> References: <20220405070258.802373272@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 @@ -2179,12 +2179,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);