Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1478664imm; Mon, 3 Sep 2018 01:16:40 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ0upXSAmxPrNqFdXe/ZNOHYO4qHegKttjUbJENZw/7NzR5dNiOZ+ocTvO6shC4xv8k4r8V X-Received: by 2002:a17:902:622:: with SMTP id 31-v6mr27173047plg.153.1535962600548; Mon, 03 Sep 2018 01:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535962600; cv=none; d=google.com; s=arc-20160816; b=J4ve4g4WTHQSSSEUYWZOHH5VYvs12fprJgidgkY0faioMw8XzpX0+LtABoSoZk9Wpo xzLEoamJjgovvOIYYYNxL3/t7ApmBSUUuwi4KvN3+FwY9lP8e+BxC57TXqoHIq/hLyBj yrn4FA5A4FWt1h0Z57igxeyKfKUxJhgXF7+1O41XKgKkjzx/6QR4AJRgFhKlPLl4xFpQ n0BAgUOB8q2x7ExKBjv0VD2XuzveplSeWnSTo4HUtrIU8y0xTBEAlT7/VMwvDIdwMyCs 4x571U2oR115TdsfpaoXeZIiUeNV8f9PwNPgMiaDnttYkhYxdb1Mf975rExyhWqV/tvN YztA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=FHpT9Y1EBeN8VEZdAgYh5ux3KRdWLwuNH0x4RuHBggo=; b=HUib/cKb6qkQAK3ka5DNiFvehIBKNv4KFh6p5bzuWCdFCOHZigo9Xe2UAeP1DCipg0 Hsh8bwtDQnwqP/ojyD2imPm04YF02MmG8mOHLNTYcWLwHhbg8QrYG+6mn6z62obaMAwm pWz7RwtDJPe9w/YVj/3fiSWVGJFt51jm2FfvC8HdFgOW5x2BDFp3MseWIk84v0wVFRX4 IjzOmbHRAK8vDqxvyLdAWciETdNfXIQUnlaxfend7Nlw3J+5DIoPQeboIPCvNOPUSMMJ cJG27zmvZZt4hqnmD5c0SwOmSI8QeHwqovsIa+10bCmmM5jATaSegZxXeCIeUsKSh3rm 3geQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7-v6si16798563plq.163.2018.09.03.01.16.25; Mon, 03 Sep 2018 01:16:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726029AbeICMeV (ORCPT + 99 others); Mon, 3 Sep 2018 08:34:21 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:39205 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725898AbeICMeV (ORCPT ); Mon, 3 Sep 2018 08:34:21 -0400 Received: by mail-qk1-f195.google.com with SMTP id b19-v6so5146437qkc.6 for ; Mon, 03 Sep 2018 01:15:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FHpT9Y1EBeN8VEZdAgYh5ux3KRdWLwuNH0x4RuHBggo=; b=CVJUNDVP2Xt9NmqbijKv+RDtLaHRA7NZTlY6kjdUbphviq+0uF/dqpXkfKGd2lf9tQ 5r7mDYDJp8khJny5thKwmKQG6sUaCekGbGuIJQ+tce5xVOtql/mPBmHKigdxnVIjpaho tau6aLlCzBzChteZVGiQHz6JhEc3HGRrIiOuBjFSCiHfod7cGQQX+EFgGIMi2389/utg 4KGJ5IyNiCgEYa/3Yh1NPwoFMzlNXyhjlrE+SfhiF3TTv/81D7svGXn+RFjMe1Nba70j zTWaPmQJ2a19Vb+d9LUKKgkvdb5UfpnPFXe2D9xAzuIIk5fmGaOC8X9JAYoRk58EqIph EptQ== X-Gm-Message-State: APzg51A4g3STIf2dbsgdgBJYchXbuNb3LnsHaOSudACqDHak+/2MsMWx zCygrBQ+GrzRBeByfCGny333kCLt6H4rEYtgRDQuVw== X-Received: by 2002:ae9:c30b:: with SMTP id n11-v6mr9792496qkg.194.1535962519391; Mon, 03 Sep 2018 01:15:19 -0700 (PDT) MIME-Version: 1.0 References: <20180830215622.47550-1-hcutts@chromium.org> In-Reply-To: <20180830215622.47550-1-hcutts@chromium.org> From: Benjamin Tissoires Date: Mon, 3 Sep 2018 10:15:08 +0200 Message-ID: Subject: Re: [PATCH v2 0/5] Add support for high-resolution scrolling on Logitech mice To: hcutts@chromium.org Cc: "open list:HID CORE LAYER" , lkml , jiri.kosina@suse.cz, Dmitry Torokhov , linux-doc@vger.kernel.org, corbet@lwn.net, Jiri Kosina Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Harry, On Thu, Aug 30, 2018 at 11:56 PM Harry Cutts wrote: > > Hi everyone, > > This is v2 of the patch set adding support for high-resolution scroll > wheels on Logitech mice. See the linux-input "Reporting high-resolution > scroll events" thread [0] for previous discussion of the evdev changes. > I would love to hear your feedback. Series looks good. I just tested it on a regular Logitech mouse and a MX Master with high-res scrolling and everything works as expected. Reviewed-by: Benjamin Tissoires Cheers, Benjamin > > Thanks, > > Harry Cutts > Chrome OS Touch/Input team > > [0]: https://www.spinics.net/lists/linux-input/msg57380.html > > > Changes in v2: > * Changed the REL_WHEEL_HI_RES code to use micrometres (a.k.a. microns) > as its units, instead of 256ths of a millimetre. > * Removed support for mice connecting over Bluetooth, due to a bug where > the mouse's high-res mode and the driver's settings get out of sync > when the mouse is power cycled. > * Moved the creation of the HID++ 1.0 function and the refactor to use > the LDJ_DEVICE macro into separate patches. > * Added a couple of explanatory comments to the Logitech driver. > > Harry Cutts (5): > Add the `REL_WHEEL_HI_RES` event code > Create a utility class for counting scroll events > Add function to enable HID++ 1.0 "scrolling acceleration" > Enable high-resolution scrolling on Logitech mice > Use LDJ_DEVICE macro for existing Logitech mice > > Documentation/input/event-codes.rst | 11 +- > drivers/hid/hid-input.c | 45 ++++ > drivers/hid/hid-logitech-hidpp.c | 311 ++++++++++++++++++++++--- > include/linux/hid.h | 28 +++ > include/uapi/linux/input-event-codes.h | 1 + > 5 files changed, 368 insertions(+), 28 deletions(-) > > -- > 2.19.0.rc0.228.g281dcd1b4d0-goog >