Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp710990imm; Wed, 26 Sep 2018 05:45:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV61T2KIN0mgI09kjzrQqCOtGj8sVDRBVZeD1smicBR1eCDIxt3xzxgBSwG+bxITdEES7lT4H X-Received: by 2002:a65:6249:: with SMTP id q9-v6mr2202520pgv.392.1537965938586; Wed, 26 Sep 2018 05:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537965938; cv=none; d=google.com; s=arc-20160816; b=UXtyZ82t3WwvQw43X+Xkkp7a0YijDw9/1h5Kq81jxyMP0+lnPOUnWMQp9np5pZ1XrL eEXUKY0WNfpvejT4jQergyfTi0xprcLOo0sdBVBE66U9ktAq4ncdiTqv2R9QstJ9V16S Fh78wg0/IAY//4BtHBp9W15cwP4JeGIZY+Pargiwad6psIW3JxstGJVOesqjiPyL8WAf h/n4FbSo2k3h6PBvrRxkBRl1cWyivjQpbcO/VLiDWcWqs+0ditESash7oIIFqULI41De 1SJhLx4kh8wvjrcDc5RtzK2cyDXKlpTnrgyibKp6LEpk4GVEXK4AcpKVS1H/PluWqpMN e7QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NyNCV2i+SqDzWcQh7JLaaBqgFKkT440oM5lq1dhTDBo=; b=ZTCFns2vDRY72emVJp/YRkjSRWIspqJnT6dSTysa8oUrj7E6D590XzM7YYFtXOLiAp CZtWXLXRUElYyDdkGgzomVtlNJmrtgDM+vTm+cQCuXaF1aQ+KG4i6C/OfYZlKXMveFmG iQ5p2RVcmSEcqScpgcojFGikOpitqpxy/SKYEKThx1BBw8GUYMOQFb2EfsJZsaz7ieFB ShZZ77c/VQVChetEi3C644RQ7FTTel4td4fOb1u/Iiy0QAjt+D+KxDU+QlJs3DYiYtZX OWplXJLVDPiYU37IBzTX4uxLM57RY7kyiNAtz2oPPcdfAxQtf1BkSyxOFgEkWmV6+RZN MBbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fabLs1MQ; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d30-v6si5281262pld.452.2018.09.26.05.45.23; Wed, 26 Sep 2018 05:45:38 -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=@kernel.org header.s=default header.b=fabLs1MQ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727380AbeIZS6H (ORCPT + 99 others); Wed, 26 Sep 2018 14:58:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:47846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbeIZS6G (ORCPT ); Wed, 26 Sep 2018 14:58:06 -0400 Received: from earth.universe (guest-nat.fw1.untrust.par1.mozilla.net [185.155.181.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EBE682083A; Wed, 26 Sep 2018 12:45:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1537965916; bh=mjC4n+5OfD84aMTgqfy9a9aQBH2twpOTJ4FlpVVYRDg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fabLs1MQ8jPBI+/VL2pNh+blPVpHvA1q9cFsRVxhJTbyAhuUT2zOnCY1AmsEOS3gt usZdNtIE0yDQBfZ1WsYsAH/ikRj9FCkIBY2V+aaKzJ7yK+h9FOLk2lEd2YyseNiUII T7UHT8folKvwH0jczDiRhDheyjgEEoTyAMJlLrBw= Received: by earth.universe (Postfix, from userid 1000) id BEBD73C09D6; Wed, 26 Sep 2018 14:45:10 +0200 (CEST) Date: Wed, 26 Sep 2018 14:45:10 +0200 From: Sebastian Reichel To: Baolin Wang Cc: Linus Walleij , Rob Herring , Mark Rutland , Linux PM list , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , yuanjiang.yu@unisoc.com, Mark Brown , Craig Tatlor Subject: Re: [PATCH v2 1/4] power: supply: core: Introduce one property to present the battery internal resistance Message-ID: <20180926124510.2ewnaw3jyzm3qkbm@earth.universe> References: <358665e3f4f9ec105dc2f8a2dc6dd98dbe761fae.1537930252.git.baolin.wang@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5sdzrxlcfxsqscbx" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5sdzrxlcfxsqscbx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Sep 26, 2018 at 04:30:39PM +0800, Baolin Wang wrote: > Hi Linus, >=20 > On 26 September 2018 at 16:00, Linus Walleij w= rote: > > On Wed, Sep 26, 2018 at 4:59 AM Baolin Wang wr= ote: > > > >> Introduce one property to present the battery internal resistance for = battery > >> information. > >> > >> Signed-off-by: Baolin Wang > >> --- > >> Changes from v1: > >> - New patch in v2. > > > > I'm a bit confused by the physics in this patch. > > > > The internal resistance of a battery is not a constant in its life cycl= e, > > this varies over the age of the battery, and the reason I thing is > > chemical residuals accumulating on the anode and cathode inside > > the battery and the energy storage medium aging. (Plus/minus my > > ignorance about how batteries actually work.) >=20 > Yes, you are right. The internal resistance can be affected by > temperature or battery age or other factors. But our solution just > uses one constant internal resistance to calculate OCV value to look > up the capacity table when system boots on, in this case we do not > need one more accuracy OCV, since we will calculate the battery > capacity in future. So we just introduce one estimation constant > internal resistance. >=20 > > > > AFAIK the fact that the internal resistance varies is of high > > importance for people developing algorithms of battery capacity > > and longevity. Such that some (hardware) capacity monitors go > > to great lengths to measure with high precision the current > > internal resistance of the battery for their algorithms. > > > > Sorry for making things more complex, but should it be named > > "factory-internal-resistance-micro-ohms" or > > "typical-internal-resistance-micro-ohms"? >=20 > I am fine with this change. If Sebastian also agree with this change, > I will fix. Thanks for your reviewing and comments. Ack. FWIW for proper battery status you need to collect battery specific statistics, that is the reason fuel gauge chip providers recommend to combine the chip with the battery cells into a "smart battery". -- Sebastian --5sdzrxlcfxsqscbx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlurf1MACgkQ2O7X88g7 +prdag/9HpJdthcFfUo/R15YTEMK4hm97zOgcj0ea5Ouhl9/h6C8Zwwgj4FdJQmG IyEw1h2jgd/t8mFKieQ9lAg0PxZPx4Jon63JpNQZcZZ9lXk1JsvJo7X36aAQyhgN pS6nB9aR+TW58FefD4C6CTKo+RMLrQqaQA7GrBXcPE06NrLAIcTCgk/ozjjjfOLF HkBGOzFcGgwVBbHv79RQJ1b3vQ1Olb8fKaekEb6Q99LK0lvTpStiBbAlO2u7WcJF RQdZ+zapIokl4vcRhMPtYasedCzlkBCbGdc3/PxMMN4UJwdUDEj8iNUFaKC1ELE7 zM2I4DdNsMMh7kj9ForxMfS4SbrII4PuyZL2j//BtV/Wkss61kwfzPBSgHP8dL5c xx+aLelWITWQgq3JipRMmXyNPKHRtHO3hiCHyD+vexAGK9uVwrJv6hw1VZkrw4tK 9znek1s3hu30A/AmxK2CC7u1rHKRUGrf0n3FUDv1PvJC27PW7fZCL0agyuEVkJJB qaHDIUIhmW56ZvdzdnEuXmGIuD4pxzRz2VIoyHtdq1igvolhuDAJ4mjTMNgTPbN1 U46SIDueinYiDrRpMTAcvWTTz75DJEFkNwIEhBAkhY442Ox0UA+4xuYZbJ6J+4Ch tNxRmPgu1bMr4CmvXFcFlrVlYySXVkvAHqt87zj52dVLvGN9ils= =gnFq -----END PGP SIGNATURE----- --5sdzrxlcfxsqscbx--