From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9AAEC3A5A1 for ; Thu, 22 Aug 2019 20:19:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 76DA7233A2 for ; Thu, 22 Aug 2019 20:19:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=pedrovanzella.com header.i=@pedrovanzella.com header.b="qXK47UOG"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="UAJJBaxX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392539AbfHVUTB (ORCPT ); Thu, 22 Aug 2019 16:19:01 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:58675 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387441AbfHVUTA (ORCPT ); Thu, 22 Aug 2019 16:19:00 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A24AC210DC; Thu, 22 Aug 2019 16:18:59 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 22 Aug 2019 16:18:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= pedrovanzella.com; h=from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=fm3; bh=v74Gs0E9r7y8M aL4VW5da3joTsP2Xv4qSIdJw1utIeU=; b=qXK47UOGPJvozyGgKHsuJfWCy48Uv BMaB6keWW/2v2wdRNM3Nrm+pQrPjboeSvSZdBrcLbBTqQvDoyNAhcAh7uTSTIIIk jLIBnxFlRJyUtFwm0AJB8J3fyF9ouM4jS+z/QuDsgdgilzIjjhqE+Az+qwE/1QJW BTFbuFuaFZ+gbjRBgupg1zPoZ3LWM99fXcyHmu+eZ3fRICCpYoRw1N7RQ+sT3/bX FcQchaBnQVWykt09x/iFR5VFJiuPzKcqC5uJJc8SIx0Y5aZ6OF4RAIFFBXVMKZkf rVgIC0ZBCF0KJVH4LHqcyqlBCb3I5j475PKlojVSu1EHckDdUSHFrEwMQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=v74Gs0E9r7y8MaL4V W5da3joTsP2Xv4qSIdJw1utIeU=; b=UAJJBaxXu1yn3dGeSRSVhdClRybAdZxHz Yjv7HQgP4Zfl90WSVu6Wv1nUYiHivo43yUI/voty/C4cRULvf3lcZV6hauKvwd4t YXzp/4iKqUcsCL6/vSbJK2ccFL0a01RmGt5DkGmnitBnjYW0P598BdlJIF56p7sI 4dTVLQ1kP3D3k70Sha3F2rN9waf4rhvQBjuIfP4dgYMYTKS1z350SZkaX7HUEbMz LbMmblEqnHWrX3WA1o2D1y7bshPpnpd2YekIQtueGP8y2jy87NOPxnI92pwEkvlS CzHDh+4Lk+EQLblkHfCs7/QwH5dz6rALYUy3v42UtS9jHYQQyIfzw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudegiedguddtgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomheprfgvughrohcu gggrnhiivghllhgruceophgvughrohesphgvughrohhvrghniigvlhhlrgdrtghomheqne cukfhppedujeegrdekkedrledrudegleenucfrrghrrghmpehmrghilhhfrhhomhepphgv ughrohesphgvughrohhvrghniigvlhhlrgdrtghomhenucevlhhushhtvghrufhiiigvpe dt X-ME-Proxy: Received: from localhost (toroon020aw-lp130-07-174-88-9-149.dsl.bell.ca [174.88.9.149]) by mail.messagingengine.com (Postfix) with ESMTPA id BF3B78005A; Thu, 22 Aug 2019 16:18:58 -0400 (EDT) From: Pedro Vanzella To: linux-input@vger.kernel.org Cc: lains@archlinux.org, Jiri Kosina , Benjamin Tissoires , linux-kernel@vger.kernel.org Subject: [Resubmit] Read battery voltage from Logitech Gaming mice Date: Thu, 22 Aug 2019 16:18:44 -0400 Message-Id: <20190822201849.28924-1-pedro@pedrovanzella.com> X-Mailer: git-send-email 2.23.0 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 Resumitting this after having rebased it against the latest changes. The gaming line of Logitech devices doesn't use the old hidpp20 feature for battery level reporting. Instead, they report the current voltage of the battery, in millivolts. This patch set handles this case by adding a quirk to the devices we know to have this new feature, in both wired and wireless mode. This version of the patch set is better split, as well as adding the quirk to make sure we don't needlessly probe every device connected.