Received: by 10.213.65.68 with SMTP id h4csp471965imn; Wed, 4 Apr 2018 01:34:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx49YLau4BVtESNqtmg1fVD7QHwGB2J+SJKLmXzZKcsqz0HIQKFaWkzYHb/muozIeEBgzaBW+ X-Received: by 10.98.138.205 with SMTP id o74mr13239245pfk.114.1522830892113; Wed, 04 Apr 2018 01:34:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522830892; cv=none; d=google.com; s=arc-20160816; b=W7mSm2OiYkZqD1U8zi52N9yGL8VGpXpfcfZa6kNytn0wg0aZNGXX+oAOSAU7/H2pNs pt1Ys/THph4Y9AcUg51w3djzFihSMoNqHfSDA7ubsf+vQHiKiYZRHrfZ7gXbB9kz/U1u uB7bXWzsIexkBb2LFQ2TV/S7uBzlDgOXTTUqMCGlVFP0EeT6L60ZgnL7xPjwKDFv56Oo zq5mnZuSAiAXN2vwpRVBvQmarS5EM0iFFgR2RxtRL2DjBsLGRKDlfDTjWoqkHHDxUdfD KcJAkX4xJmKH11p/ACoH8vzcQ+oKIUfiyMpMhgPMp5xixSM9QqKK4X4gMt4rz2II3f6Z fNkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=Ot1seLmiYNDT5ny1QqbKf1oOYqkarQ/0Z2qdiRTKuz8=; b=AtYayLeDNOapRA8ffVQcMW7HMjRGgu2l0utmmOMQeBg1yCGNyWtldYYbTR/02Pe+Jc jmBZ/lv8bY1J3K7L+oeA5FZrzO92fIKlkFthgD3kkmaTbj5edgAa7VPyHFE8JHezQT37 yItsAhcq0cNguki8T1hU3ViXihOR3iYBy/f0i/ETv1U2SouRzZ6BI8BqhufisRv17mal 7tAlfB17Mtls08JArRW9lkaBX5haVm3wncbYYCKl6IqIDEeNkwp6J1lyBhb9NkJZCIq7 GqTdsrL5IDg34AQjD8+mkAUzcQdEuikYz37ahZ1sRKMeOXbgviOTbzMAzKCTf/MrFoYY v2Kw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k75si3676354pfk.4.2018.04.04.01.34.38; Wed, 04 Apr 2018 01:34:52 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751451AbeDDIdU (ORCPT + 99 others); Wed, 4 Apr 2018 04:33:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:60569 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbeDDIdS (ORCPT ); Wed, 4 Apr 2018 04:33:18 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 657E2AFF8; Wed, 4 Apr 2018 08:33:17 +0000 (UTC) Date: Wed, 4 Apr 2018 10:33:16 +0200 (CEST) From: Jiri Kosina To: Martin van Es cc: Dmitry Torokhov , Martin , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] HID: input: fix battery level reporting on BT mice In-Reply-To: <10651380.a6EbCRfp8J@minivanes> Message-ID: References: <20180403175220.GA148162@dtor-ws> <10651380.a6EbCRfp8J@minivanes> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 3 Apr 2018, Martin van Es wrote: > Hi Dimitry, > > I reapplied the 3 commits I had to revert earlier and applied your patch. Have > correct battery level reading on my BT mouse back! > > /sys/class/power_supply/hid-00:1f:20:fd:cb:be-battery# grep "" * > capacity:53 > grep: device: Is a directory > model_name:Bluetooth Mouse M336/M337/M535 > online:1 > grep: power: Is a directory > grep: powers: Is a directory > present:1 > scope:Device > status:Discharging > grep: subsystem: Is a directory > type:Battery > uevent:POWER_SUPPLY_NAME=hid-00:1f:20:fd:cb:be-battery > uevent:POWER_SUPPLY_PRESENT=1 > uevent:POWER_SUPPLY_ONLINE=1 > uevent:POWER_SUPPLY_CAPACITY=53 > uevent:POWER_SUPPLY_MODEL_NAME=Bluetooth Mouse M336/M337/M535 > uevent:POWER_SUPPLY_STATUS=Discharging > uevent:POWER_SUPPLY_SCOPE=Device > > rdesc file is attached > > Thx for the effort! Can I add your Tested-by: while applying the commit? Thanks, -- Jiri Kosina SUSE Labs