Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1419860imm; Wed, 26 Sep 2018 18:06:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV61z45FLtNA3kXhRsQ3lhJHvVBV2R7lBfOujQWyFtqv1A0/6R46Nxku0KvmXACL1YIqk9xWs X-Received: by 2002:a62:12c9:: with SMTP id 70-v6mr8694123pfs.140.1538010409049; Wed, 26 Sep 2018 18:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538010409; cv=none; d=google.com; s=arc-20160816; b=kGFauOSk60N28Md4EWc0U7u2Kn779x2LHSPCWMbugg8NxQkWh+AGPr9rNjZV0gPV4m UfAAxDY0NOaJDlSBdqoQsQluxCY0iR0zFWUPA7j7EWWy8flGxeuTzIdKzMZ7hge0QJ1R uFbK9mdtqEoA5shk7bK/Rn/0vCGGxJQEJzUnJdvRezmYnRWSfazW3setJ1mH4VDNLZUY OJzUpCV4GPAyWFkeKdRwW5hyntE6j0r43Z5f2ZwZv26eiMirNdlwm9G1Fu90J3ECjnXT BtjuH9m/FVmdvG0AJcMO+xiRQwt1uytH6Kz+u/x+piuCrrlV+uszkYiOKl0tIp2e8VR5 WAvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=Qo3KTwYzRtgPpcDcBg/6w1ZcTq4c4fAivvrUz2SB7ZY=; b=htj/B8UX8h0nKeOZtlHOPoaF4V68kylU/c5Gn3tkEjIQHBf5MZHH/z9vOv9LW748zA oS8y1uE+ctHUDf5BE3ETAB2webSMTV7B+LI7lRtEPRuX5fgk64iHA5pdKPU9IluQ0+Za avG5m77a03YvjT28xKQZKBkSs3Rt1gyynzmmzMz31RUVOp17uVdV9Dc/6R+DjzCtF2ka LxC4BKFYJ6S0q+9mf5ba2nrkrx4XHIJHd2VG5hKq5nuORMFgMviSZuTvtwSu/0p0HQ8A Ed/D7AkWk3nfHyl0xsnTOLv+X7gcskXUfvRHxULCd3eznRhmNcTpAsMD1q/EWhodUC4x Z5pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Spfm3enk; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8-v6si463705pls.437.2018.09.26.18.06.34; Wed, 26 Sep 2018 18:06:49 -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=@linaro.org header.s=google header.b=Spfm3enk; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727111AbeI0HVp (ORCPT + 99 others); Thu, 27 Sep 2018 03:21:45 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:44447 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726571AbeI0HVp (ORCPT ); Thu, 27 Sep 2018 03:21:45 -0400 Received: by mail-lj1-f195.google.com with SMTP id q127-v6so735469ljq.11 for ; Wed, 26 Sep 2018 18:06:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Qo3KTwYzRtgPpcDcBg/6w1ZcTq4c4fAivvrUz2SB7ZY=; b=Spfm3enk2talgjPgG+zBl/rpBM9BtQY01gRjb4HP5CBaZJ7JsCVCQ0o8rqhOLzKG5S oacYoS0XimPTRWkDdvzfXPUXCV8DkIycqBg6FpEYK29PGsUHpICkxhZ7N2LUeggz/UYm GLPuQcrJSF//galzzUUKFzxBG2Iyb30Tl3III= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Qo3KTwYzRtgPpcDcBg/6w1ZcTq4c4fAivvrUz2SB7ZY=; b=Ih1nQ9ffsFHAqsHlp49Oz8fBU7Q8/JjCUpbWhLMH37OnaabPqcCleSG/5srsrr1LXX DetZe8oRe3epL7ciz4xZHoDIjt3jWFfucTnotTFPvrJ38y5ArrOE68r/wKD0gh4w1NE9 Hd5WKrX44mGN1SLuY0dgLDIGB3f9W/lVngBRU8sJqfbMR+ebIcUGyT+q9zCNQM8TMwlo dYlbcG9Ro9ImRjmM42KYgL6iuwJsXdB7vkRt6PBBn8NkIpCYw1YS6ryv5qqkYJsfNRQq w90a9A/EplI0HWt52WdNUz8sVjGnsMPXqOg4Lj23RRBlOQQH9kPF/Dy9wk7Y8DmKLsCZ zk0A== X-Gm-Message-State: ABuFfoiKDpAqXQfEQI1I0u5D7jSnJXEk+ZwZ/5s9GPZQLpjmit0UhL13 +Pwu/v5mg2GxJUpUNaSZz4FPyxvyG/bzS0+/oH7U1A== X-Received: by 2002:a2e:9d7:: with SMTP id 206-v6mr5754419ljj.127.1538010365807; Wed, 26 Sep 2018 18:06:05 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:95d7:0:0:0:0:0 with HTTP; Wed, 26 Sep 2018 18:06:05 -0700 (PDT) In-Reply-To: <20180926124510.2ewnaw3jyzm3qkbm@earth.universe> References: <358665e3f4f9ec105dc2f8a2dc6dd98dbe761fae.1537930252.git.baolin.wang@linaro.org> <20180926124510.2ewnaw3jyzm3qkbm@earth.universe> From: Baolin Wang Date: Thu, 27 Sep 2018 09:06:05 +0800 Message-ID: Subject: Re: [PATCH v2 1/4] power: supply: core: Introduce one property to present the battery internal resistance To: Sebastian Reichel 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26 September 2018 at 20:45, Sebastian Reichel wrote: > Hi, > > On Wed, Sep 26, 2018 at 04:30:39PM +0800, Baolin Wang wrote: >> Hi Linus, >> >> On 26 September 2018 at 16:00, Linus Walleij wrote: >> > On Wed, Sep 26, 2018 at 4:59 AM Baolin Wang wrote: >> > >> >> 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 cycle, >> > 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.) >> >> 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. >> >> > >> > 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"? >> >> 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". OK. I will rename it as "factory-internal-resistance-micro-ohms" in next version. Thanks. -- Baolin Wang Best Regards