Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1959567pxk; Sat, 3 Oct 2020 03:51:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6HhjJ8ur+KvTrXpTnz7+UVJUsJFdOsSqieIv5jJCmRwtACPLfu3vX72Gnx32jVW+IRnnw X-Received: by 2002:a05:6402:142a:: with SMTP id c10mr7916593edx.261.1601722268273; Sat, 03 Oct 2020 03:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601722268; cv=none; d=google.com; s=arc-20160816; b=bNweKvf9NtGkk7RG4TN1xrb8AUfTYcPBNJHdayFQ9+dCDRIYhuh7XvebTiszBq2L2s lydXn8k3WT84bIksjzWjbfhQwjHFuTzhaQEqmpQ3lr3YaNvv4z2V7hxsIaD8DyIL0pS6 ZjUW1j6oHPFu7S+UWMRer5C12Iln0IunYE59F0c3ZdM5yYM8qGeRIA5GRP2f6L4eL1oD nPI7f2c8H+lY9US2GhKRdwiEuQNr3ptVBMJ0VQYnscMidFEACFhcqm0HGUnXjJ4XcPD6 t/wDwgluMx2FU0P/ZrBTwZtEqTVaRv1EDVYKc1VDdC1SF92c8YwJN3R32nIaPf+RymxU oddA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=GkeUcbQEct9o8xQOgcuoFFVOjzCFx3MxJbWtnoM7NFo=; b=J3YC63vNeYCpmj8kpn1L9im6dAbS8BUO2m6Eaqt7MH8o9GgrfnTF2GZhACvkKrEyuI QHhGWCLLtTaSh/aafiSqeK4blhd2M2sh11Lnrkj6xL9QHoZFEjFyYK81h51M/10C7nGU Kk4YyClalX0ExKcISy9RMmcoBOK/JP/cNzoh3trNbjXomsd7V2mpuh8muoMEQKIUxqZf hQEFhmtqDzk+cFo8O5Ek91RXalTnoMNRkAbnmGI6U1aN449QkWw3WDOZyS55zB1uu23m IracDJzjxQygdEluBd2AvIQWj65ng83JtJZAbX3uUbkvaB5+aRCn2S9dV7LiduweglHa 8h5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si3161300edl.154.2020.10.03.03.50.45; Sat, 03 Oct 2020 03:51:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725775AbgJCKs1 (ORCPT + 99 others); Sat, 3 Oct 2020 06:48:27 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:58812 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbgJCKsZ (ORCPT ); Sat, 3 Oct 2020 06:48:25 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 61CE829D0C7 Received: by earth.universe (Postfix, from userid 1000) id 433743C0C84; Sat, 3 Oct 2020 12:48:21 +0200 (CEST) Date: Sat, 3 Oct 2020 12:48:21 +0200 From: Sebastian Reichel To: Andreas Kemnade Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: Re: [PATCHv1] power: supply: document current direction Message-ID: <20201003104821.oduzfpxbw23b4fcz@earth.universe> References: <20200827140248.37749-1-sebastian.reichel@collabora.com> <20201002182303.51db1289@aktux> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tut7zgjl6z4grit4" Content-Disposition: inline In-Reply-To: <20201002182303.51db1289@aktux> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --tut7zgjl6z4grit4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri, Oct 02, 2020 at 06:23:03PM +0200, Andreas Kemnade wrote: > On Thu, 27 Aug 2020 16:02:48 +0200 > Sebastian Reichel wrote: >=20 > > Currently the sign for CURRENT_NOW and CURRENT_AVG is a bit > > of a mess. There are basically 3 different ways battery fuel > > gauges report the current: > >=20 > > 1. uses negative values for discharging and positive values > > for charging > > 2. uses positive values for discharging and negative values > > for discharging (opposit of 1) > > 3. only uses positive values > >=20 > > As a result userspace currently cannot use the sign at all in > > a generic way. Let's solve the issue by documenting a canonical > > way for reporting the data and ensure new drivers follow this > > way. Then existing drivers can be fixed on a case-by-case basis. > >=20 > > The 'negative value =3D battery discharging' has been choosen, > > since there are only very few drivers doing it the other way > > around. > >=20 > > Signed-off-by: Sebastian Reichel > > --- >=20 > would be nice if this comes in, so that is it clearly specified. Ack, I'm a bit late picking up patches this merge window due to a vacation. This has been queued now. -- Sebastian --tut7zgjl6z4grit4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAl94Vu8ACgkQ2O7X88g7 +ppLfw//axQg30mpwaFeoG1ILvanxIQOc96J9leo41XLs8N2xNNYak4Nry9OS0ET G7P1wmo22Y9HdwbvzKV3t5sMKc3d2gswhd+CnjM8FbrbTd4iI6JQv4G38gRPcqPK HUA/NWmLRHakRb70AgsuJBMR6JIhSBNWt54CfjXk/GsrJ3hpwApgKGPRK2oQ2oHd VTXMOKzqhV3J47NY4d2Xn0jWPDY6Kjm5xuevOhAH6XNKyYZMScifQIItVBTOXnX/ sh960fhph6Mh50KhztJQaqWEusCi99m7WPxyvdNwte2UEPLnMUG7d31b0hIo/k7k qYoy4soOD8FR3wIRRcbwS+SFhztaM//4jqN0YcIL9HQAyxWQsbEngVP67SVVwOEA UvS2vPunFwHrvWDR1eWMLNf/pX0s7ov5BZ7H7p+5JGqV9r81DHM86NxLUF5bz+p+ ggzM6ZyAxGh0XnVki10J7VUIIFxMirwEZYO/7IMPI2DZmOuduQ/IyHErAlxjpBCQ K+AecAV4qTdXqSZ0qaV26bSN67+GDWk7MkQIlyStDI5x6l727MSk0TzRjH9dpYJ4 uDdqmlFCyriNolOvdESnsf5B8Wa321RCLwXLA5OJ2NIXqWsoe4PAZasAqneicnvQ WUSiWhVxzGlOnahDfI8/a5lsT/vzbx8xStTLPGmV4jcMGnXuOW4= =vsSI -----END PGP SIGNATURE----- --tut7zgjl6z4grit4--