From patchwork Thu Aug 30 21:56:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harry Cutts X-Patchwork-Id: 10582931 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8F8B05A4 for ; Thu, 30 Aug 2018 21:56:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EB512BE32 for ; Thu, 30 Aug 2018 21:56:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 725352C24B; Thu, 30 Aug 2018 21:56:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6573A2BE32 for ; Thu, 30 Aug 2018 21:56:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727639AbeHaCAn (ORCPT ); Thu, 30 Aug 2018 22:00:43 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:37633 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727629AbeHaCAn (ORCPT ); Thu, 30 Aug 2018 22:00:43 -0400 Received: by mail-pg1-f194.google.com with SMTP id 2-v6so3961238pgo.4 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=CvhfCnWmrqTQb6mbcNUnmqcSL304Q2bJ2Wk7hwUzDw/K1BOIbDrVakIrifNbeZhpOI n9V5wzDJy/KBryfIPbsLycEorAjqpqdvL5rEiK29YDRWQFjMOSbTwY+TJjYBMNrVkzNQ 81brX02LJrM1//Glzyk0Yjdq2SNjLxBjvj9W/MSHRULsvrUAL5JNgQR5cLnabco2oMDq vz2lYpZ9aPtdNjgvmXgSlRV65IBk7zTJjGEMI+Vqngkkzk+0aHIsSHfgBbdm/jioGSQa G14pKgNcefgcvQ6ojwaUULrRZXmHCgx+NSPvb8WBTuWynsAXwl4YyAgCk0GcltssKxOf 25Rw== X-Gm-Message-State: APzg51B86CkxDEHayNaJRBscquiToiljw6h9/GT4MB88inbCdKmwEeSv fE56BM8ZI0jmejEgag99TqNH/dpO2xE= X-Google-Smtp-Source: ANB0VdbGmWEE2EmQO6KH/JM1ykYqh4PwKfszwwS9XsJ1tip2BaTTdYVoIp1ABW44wsqK6xMjP9BHOA== 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 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) Reviewed-by: Benjamin Tissoires