Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp33919imm; Thu, 30 Aug 2018 14:59:06 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZW7WOrScWVLnbHm8jX3zHzOzC6vFoivqBn2NikiVtNpjLNMOfO5VS03aotMje3gmhN/fCH X-Received: by 2002:a17:902:bc4b:: with SMTP id t11-v6mr11941098plz.262.1535666346180; Thu, 30 Aug 2018 14:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535666346; cv=none; d=google.com; s=arc-20160816; b=qi3Biu4Hcm13v54BILV0Xx7bBVW44EJ1rWGN5mg5AIglIO3s2SeDpvt8Fqdh9aP2wP l6eS5q2QvtbflJLLCJNU229waKqD+611XjqRw64JBH1Bau8NYE+JnlYL5U4880Uegxp4 TkGe/YW6181Tp+F10YLg8RCWymamkmGhkP//Rks4pp1rXfoo5v7ysAQWo0B34wCmiigk /PzXs7EH4l69evL/rmnl1wVNAloUcz5aOD5/M8uCPxwk6fKQjUr8gJSCMNvd1iY4pvPk ZsO2ucTbJORGclncEIfNBz2pKWqtdX1wJ6u6AXaS32vG9gYr4FUeQQ5bsKukmbEu3imx mk4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=iWcmBCDwUKd4jj1L7AbvOTMWjbSc8v8zlrIjl+DjrBo=; b=qxfQ6lPZZEjOoebMauRrXVrZHlhvtEYJ1bQ9KC4H5Xwo/3VCmCBAX9UlVCcByvmHgD k7wS4p2LphuBJK3QQkD6KZSqSlCQkIiA2OzdLcsHxr3y/wasFS7U73btOMBIh9Vuu4t5 bcaJKXgYNFSR4OJbKHGn4+B6Rp8Te3XTdxaTDfySEeBYyoNm0JaCdF6SJkx+eRxlfDpb nl3lXBhrFmz1pXC/atgWEbBq8bu8FPUwKKzFSb1S6/6CjYaUDes1iRQX8zw2T2PyGlcp TPEuYfmbDN32Hso9gE96JVVTEQi1EWx7iBkQRgeoTl6nlvteMsUoqNlsB0DgNlYvcEr+ C3ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=m+bVJqyt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a84-v6si7914024pfj.300.2018.08.30.14.58.49; Thu, 30 Aug 2018 14:59:06 -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; dkim=pass header.i=@chromium.org header.s=google header.b=m+bVJqyt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727727AbeHaCAn (ORCPT + 99 others); Thu, 30 Aug 2018 22:00:43 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36379 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727607AbeHaCAn (ORCPT ); Thu, 30 Aug 2018 22:00:43 -0400 Received: by mail-pf1-f196.google.com with SMTP id b11-v6so4501816pfo.3 for ; Thu, 30 Aug 2018 14:56:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iWcmBCDwUKd4jj1L7AbvOTMWjbSc8v8zlrIjl+DjrBo=; b=m+bVJqytTZZvcesHHVIeSiYlNTdxjaRCL4mNVOiGZHwV3ocDEbpbsRfQF647E8Tldu FUgS4chkYthhEGlfnW1x5zlQXyIaExHi7D1vsg52oGSYBuRVLydEU0tu83KDGiuI7RoK QG37cb+863gh6rVWwiInJ6GeZVopJCA0n4VNo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iWcmBCDwUKd4jj1L7AbvOTMWjbSc8v8zlrIjl+DjrBo=; b=XUKUOV58I2oL8r88W1rWSGnCCav77ivywmfY4WqWA/VhzG0GLyeagAzHnJe10UMyRw APdRunQvz4FA0kw3q17DD3eaGvnbdKKfChX7p+ery3HrDuskPZbE+U5qWI0nA7P9DLpH cTzZqBxdC8Kak3FGQoaUHYgrG4+TG8Rp2dEUWCmGMAdM28g6TjscTlhHeqbQB+THafMq itnqHt9qAgft9jIwyQF+pCcFm3VctXM+qG4dplaC8tSEpNX+RF+BoM3pU3b0dmJBYmDf MVF42pxJZFqfPJ0dTOHIg9+GqBOPfFZgXwec2CxzSQSup2mBJrv07LzCMxkEOwuM39iV QFtQ== X-Gm-Message-State: APzg51BF28BLLGNYvNlb/lVWrefdcKrdu8r+kPCtLUJiJcngUnM6ubeJ iYFjv5+sYuYtm3QfN0kTqy1xFA== X-Received: by 2002:a63:6fcf:: with SMTP id k198-v6mr8290767pgc.360.1535666187696; Thu, 30 Aug 2018 14:56:27 -0700 (PDT) Received: from kolhar.mtv.corp.google.com ([2620:15c:202:201:356a:9de2:526a:5bc]) by smtp.gmail.com with ESMTPSA id h132-v6sm13516828pfc.100.2018.08.30.14.56.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 14:56:27 -0700 (PDT) From: Harry Cutts To: linux-input , LKML Cc: Jiri Kosina , Dmitry Torokhov , Benjamin Tissoires , Harry Cutts , linux-doc@vger.kernel.org, Jonathan Corbet , Jiri Kosina Subject: [PATCH v2 0/5] Add support for high-resolution scrolling on Logitech mice Date: Thu, 30 Aug 2018 14:56:17 -0700 Message-Id: <20180830215622.47550-1-hcutts@chromium.org> X-Mailer: git-send-email 2.19.0.rc0.228.g281dcd1b4d0-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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