Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp908436rwn; Thu, 15 Sep 2022 08:04:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5olBavKZCs/P/AdLHgeZSa+XH7Xiry7sUsD16cbK1V4j1/7fDgb7BvfJjVXjpaMeW8QUkV X-Received: by 2002:a17:906:99c1:b0:6fe:b01d:134 with SMTP id s1-20020a17090699c100b006feb01d0134mr301223ejn.598.1663254241842; Thu, 15 Sep 2022 08:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663254241; cv=none; d=google.com; s=arc-20160816; b=V6QQacrKheisQtoP5nojwmmsIqXsqwI2BGwVADDcNR9sX0OaKFbYTYaFYfbvOlDcfM x/PRv2UJcxgXKTPsjzdD5Nc/MbNO+JQjeRzTWsSf/Lb5b4GWtlYrLBtc94gXqDzDLZ1w lzPM005BUeOJypOcMcXtb+IZWj0gbIO/aIo6juu3F6y40q6Eq3MlI0eDAHh4orHbaOhU kvk0Zf8Prm2I7OOibZ/rBHVo5RL4ASXOXYGq9ls5/R9W6p2npR5DicrEsJ6WyDq7BaHC S0LycHUTfp9OXTbsD2uEmhYk6nZk/zT1g28fQLsBtwTwBoYUbV1gNwm3pb+ieHFoXOjY aBYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=rxFiD+4QxCYu5KzdFuUOceyYNhEM4QSs9sWhpbo/P8k=; b=yVNxufZL56rO1vbE6HQaylj1xjjF3bQXEFNghwPKeWvhdR+Fi2VoWDt8w4idC2IjgH thtal+fYCHSjgHHLPRECO2kmMGKE4uxBkXNaovMSo/LsUe+hn5vv3+dILObtGILLd6Ni wyNB9MAxyw8wTL/ht6zwq9cDrADBhymJkIdjZg4SSsHX1EZSXYvG/E9hINzFqKYmoNyj +Wu/q9y+vqI6VZ1MMc41ncpypnJo8euxGgwUsZC2oTfquZhs9QOk5x99nto5o0Cy+kWb iOIx09njHyCcpqQmHtrMNz1Or7YopEn+XN3IpkjyOwrBZMX+nFlochrqXoi+TC9XCf4F xDPw== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd18-20020a1709069b9200b007802170e0a0si6607129ejc.32.2022.09.15.08.03.34; Thu, 15 Sep 2022 08:04:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230237AbiIOOuV convert rfc822-to-8bit (ORCPT + 99 others); Thu, 15 Sep 2022 10:50:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbiIOOuR (ORCPT ); Thu, 15 Sep 2022 10:50:17 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::225]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FEAA15827; Thu, 15 Sep 2022 07:50:13 -0700 (PDT) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id 0E26B1C0012; Thu, 15 Sep 2022 14:50:09 +0000 (UTC) Message-ID: <5d890576d10cda7dbeef48f0eb13aa6860ab7d44.camel@hadess.net> Subject: Re: [PATCH v1] HID: logitech-hidpp: Detect hi-res scrolling support From: Bastien Nocera To: "Peter F. Patel-Schneider" , linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Benjamin Tissoires , Filipe =?ISO-8859-1?Q?La=EDns?= , Nestor Lopez Casado Date: Thu, 15 Sep 2022 16:50:09 +0200 In-Reply-To: References: <20220914132146.6435-1-hadess@hadess.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS 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 On Thu, 2022-09-15 at 10:23 -0400, Peter F. Patel-Schneider wrote: > > On 9/14/22 11:41, Bastien Nocera wrote: > > On Wed, 2022-09-14 at 15:21 +0200, Bastien Nocera wrote: > > > Rather than relying on a never-ending stream of patches for > > > quirks. > > > > > > This change will detect whether HID++ 1.0 hi-res scroll, HID++ > > > 2.0 > > > hi-res scroll or HID++ 2.0 hi-res scroll wheel is supported, and > > > enable > > > the feature without the need for quirks. > > > > > > Tested on a Logitech M705 mouse that was unsupported before this > > > change. > > > > > > [    9.365324] logitech-hidpp-device 0003:046D:406D.0006: > > > input,hidraw3: USB HID v1.11 Mouse [Logitech M705] on usb- > > > 0000:00:14.0-4/input2:3 > > > [   57.472434] logitech-hidpp-device 0003:046D:406D.0006: HID++ > > > 4.5 > > > device connected. > > > [   57.616429] logitech-hidpp-device 0003:046D:406D.0006: > > > Detected > > > HID++ 2.0 hi-res scroll wheel > > > [   57.712424] logitech-hidpp-device 0003:046D:406D.0006: wheel > > > multiplier = 8 > > > > > > Link: https://bugzilla.kernel.org/show_bug.cgi?id=216480 > > > Signed-off-by: Bastien Nocera > > For anyone on a recent version of Fedora that wants to test it, > > those > > packages should work: > > https://koji.fedoraproject.org/koji/taskinfo?taskID=92008550 > > > > Cheers > > > > Using this kernel I tested several Logitech mice - an MX Master 3, > which > already supported hi-res scrolling in Linux; an M310 and an M185, > which have > features but no feature for hi-res scrolling; and an old-style M510, > which > does not have features.  I used evtest to show the events that were > generated.   For these mice the patch does not produce any change in > events > generated, as expected, both REL_WHEEL and REL_WHEEL_HI_RES events. In the future, it would be awesome if you could mention the tested-by tag as mentioned here: https://www.kernel.org/doc/html/v4.17/process/submitting-patches.html#using-reported-by-tested-by-reviewed-by-suggested-by-and-fixes As the tree maintainer can then use it directly when merging the patch in their tree. So, for Jiri or Benjamin: Tested-by: Peter F. Patel-Schneider :) Thanks for the testing, much appreciated!