Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp873848rdb; Fri, 22 Dec 2023 07:32:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IH5ZXF19ZTUyqjA1BC+klKAkSscNu4Erkcz2dV/ZxEI1xbBBIWEIeFq3BVZFs/OqCzvifIt X-Received: by 2002:a05:6402:17d1:b0:553:a1de:c35e with SMTP id s17-20020a05640217d100b00553a1dec35emr673354edy.66.1703259146594; Fri, 22 Dec 2023 07:32:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703259146; cv=none; d=google.com; s=arc-20160816; b=a9vA+LqtDhZolSr2GQVYZd5LOePOWayb3QfmoKb5NsNHbkhE5Z/pIagWvmEeo9Z1C5 5q+xgl1SKDXjigf3ovLJIoGlnHS7nV6a1cJ3403SHoRzeby0Wlm9h/AZ7Beo4CGQRLFz vSKnyWjHAtoDeDjpIURljOTrYQcQKqvyN5y6hIAxMJYXjdKxVgF1irMVHQqvVkG815XB JcLRpHRlFqHgAy9STX8FLxZCit7E+zsZCzWaxo9x+6zyMERAGnMIPVwhB9U8Xm2c7LSe VjhyHSGvQ3xOn0PLgMBzu4JHyXhQO/343s8TIdv/tFA3B1ZKSTE7ZoUUkuqTbP1mxKcc xjqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:subject:autocrypt:from :content-language:references:cc:to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ytwj4enigpebjuVSwLojekI3OkVmtpcFeL6R4n0BjP0=; fh=nS2PnnW3I11aPVt7ox7y1k2AGW5YKNoCm+Z9TDGGqMk=; b=0iEfUMgNL0tQt5re7LEfO+EBktkvxJHjW1DbRkuTnJ5Zf11suMhfAr4WqbJzHqG2fJ 4ZwaR7F0v/HuR6UBEx1HDmRsNVtEGflClfdFnF8A8Lc5rJUU+fY1M6iZqt5dVHEL6F33 wdZ2YOh9hGgXYWkaqiOvtVlX2vweV8ZPHSgsZDsrj3xYgrxRiM6LXOE7fA9chYFyi3c/ LKB336urEa15vFe9HpbO5cIQGaNRRYBt4waJue/VkoQGedbZyhKL9vh5dYUL3gaHa4Yu WvnP8mXeig0AIJwGyFtVmddlncfFSOjGzIIOw+z0pHN6Wqb8zaRQJcl2D251eQlwsdrg xaDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=Vq3XtAKP; spf=pass (google.com: domain of linux-kernel+bounces-9841-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x34-20020a50baa5000000b00553ffa87288si1872969ede.320.2023.12.22.07.32.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 07:32:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9841-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=Vq3XtAKP; spf=pass (google.com: domain of linux-kernel+bounces-9841-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5B7601F21F2B for ; Fri, 22 Dec 2023 15:32:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 527992376B; Fri, 22 Dec 2023 15:32:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="Vq3XtAKP" X-Original-To: linux-kernel@vger.kernel.org Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0E0623756; Fri, 22 Dec 2023 15:32:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4SxWWG05Rvz9spK; Fri, 22 Dec 2023 16:32:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1703259130; 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:autocrypt:autocrypt; bh=ytwj4enigpebjuVSwLojekI3OkVmtpcFeL6R4n0BjP0=; b=Vq3XtAKPZ0jRLkZxeoXBSEcgnTgFZMM36b9lC9YYcL07TGZoexcgBj7t+NfIRdO7jYvdZi yKZa8DuXhStNGT/+2zVPzKjZM0zW0rl62XJ3A63w5pRD4erP8S1+ukIc7n6rA5Bie1diA2 LaSryEeAoBlAruaRTznmB7m7kQ6IzFXKdfM6CAK2gwqhGdtkSiJkW0UeV6Ij39gpR2f/RV i60m5o0N+vgGUUjyHyWI77gBy0ZLzFjgO/x+8Y7uNr4TCzd+RpDijsL3abr99bVf13Y5kC lBAguNuQ19V2IP8+u1UzZgck//Fjw4Fa7+wPKZs+JtdEgvWUOe+YwO03UEaDiw== Message-ID: <3a29c0a6-9b53-433d-a83d-5b68a87c1155@mailbox.org> Date: Fri, 22 Dec 2023 16:32:07 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 To: jkosina@suse.com Cc: benjamin.tissoires@redhat.com, iam@valdikss.org.ru, jekhor@gmail.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, me@khvoinitsky.org References: Content-Language: en-US From: "Uli v. d. Ohe" Autocrypt: addr=u-v@mailbox.org; keydata= xsFNBGCqbBwBEADVWGzbfxJdbLZjlPDq/UoPWwl082hpbj4YYqkPXbDwOhp0i03JLHctEhH0 Ro67Rbxmhea4IDEr1UGkaPhfaSSxLMmR4e+NYOq39Yy8HERSJCEJbhTgzSFm9hFS+gZBPA4R Tp3AWABCDvLm6pWRDELcvZMQe3B3/O5/S3hmZtGOLHEfPdQpidnyHvBwFyqyfYTgXyBinstI siYNj4vW3Hjt05IWW3wd9OMd+CqFa9E0BgKqMjWiACcz/Ejt1ckyr7Dx7wokZSZ8cLAMCHyw R6f/TmHjasrt/99i9bdyoJpCDydMoOAX/+UCju2Xn4qzmPpUw3WhiSE7vGn4kO9kQ1Ai9rtK t9bVhV/W5Tontnn79g91ZPooG5YpEG0Ndf6gvdeK7B62dSQhCzb5D+rFcbuuj7eu6o14bLTo nX3Pb02C13p6D+JlH2AAFYuCcXv98z7bvzQet0EavOfy5rH2Osq2uV70PtFoN2ww6dOKKSqQ qhT2ucoG8lP9fGswQIgwb2ygT95Zb0S2WcYZ9txEx8dWa2gVYzGh9vIfe8a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P8ELXgBZeunZIoM8/9UaDkmp5hJ4L73eDhlguGdzPR7nN5F SXumk+WFy1jZGeousOO9qSrMCIhPzW4zxgojwwiNNFhNpck1NB0p2p1pZb4c8BVpAhM4GFpu YGbRmBBYNExHm2php67JlqhrpimGo/8E+D3scs2WLER5jH6NSlJuSGcGkkf6ZZJRD2OQhQYH Gj2Dls7qoqpR+W/qDRESDCqvP4AGIGghohcNLXYJ6CJL1Vp3U4lZu9yr3l2hZFLRRtEBxuEk YcQOzHZ6wrnS8Z4yyOwphPc92Uwl0rc5w+SxR6DEDp7j Subject: Re: [PATCH] HID: lenovo: Restrict detection of patched firmware only to USB cptkbd In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MBO-RS-META: eyjr3fgybci59dgcb7wbuh5ujqsxncau X-MBO-RS-ID: 5efe9ed3d9cfa6c68b3 I get buggy middle button scrolling behavior on my USB Compact Keyboard (i.e., "1st gen") with original, unmodified firmware and the patch (of Sep. 23). Sometimes the keyboard sends REL_X events while the middle button is pressed. Thus the old "workaround" is disabled and middle button scrolling henceforth exhibits the known buggy behavior. Explicitly, I can confirm that the following values occur, leading to erroneous disabling of the workaround: cptkbd_data->middlebutton_state == 1 usage->type == 2 [i.e., EV_REL] usage->code == 0 [i.e., REL_X] The keyboard is identified by lsusb as: ID 17ef:6047 Lenovo ThinkPad Compact Keyboard with TrackPoint This was tested with kernel 6.1.67 which contains the backported patch (commit 6e2076cad8873cc2a9f96e4becab35425c3656dc). I didn't test the latest patch of Dec. 12. However, I don't expect it to fix my issue as the only added condition hdev->product == USB_DEVICE_ID_LENOVO_CUSBKBD should be satisfied, which I understand is also the intention. (USB_DEVICE_ID_LENOVO_CUSBKBD == 0x6047, which is the device ID of my keyboard as reported by lsusb.) Best regards, Uli