Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp832655imm; Wed, 13 Jun 2018 09:00:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLQe4pN/Ru3TsRXKTfrG9wTFdnN94lgUCn7wiYvX4IBYCB+mC9j2L6zRFxKAxkqzJoUUUTr X-Received: by 2002:aa7:84cf:: with SMTP id x15-v6mr5453922pfn.220.1528905610920; Wed, 13 Jun 2018 09:00:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528905610; cv=none; d=google.com; s=arc-20160816; b=FfAnoiv4kLQXNDmy+5UA+0Lez+VH3gK3k+TU6rL0OVK3/yZJNA2n4qh5kkZ2pdNHJw hBnm+1er2Bq6e9PmB6J4qmlFiKD3xtlw+r9suVFEJw8cPsDG9JoRzVYGEc+flYEvo8+g tuRXamEdJNBCGIFhXptj8RCMok/F/+wSFaxmpeoR2rP2IE6DBkbx93ZCDR9uAeVZySph BL0dvGf+MPEX/H1QkXnf4pMXFnzPdh7zlpK5nGbKTLIVt9sqd8iJTfXSHjW2i97q3tND suCUmzo7fA14bxeQWNBbm8b805zTPlx6xq7xZfF7gU5lyoD3HGa1qcX4wjCQ/lN5Dw07 jCrg== 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:arc-authentication-results; bh=jPp9Z8+iUyS5bfJ0COwbnw1YUIb9H+yP5Lw/ODDV3u8=; b=OY8YcG196JCqyZEVmHQDX1Y+yI/AT0qrhL2KQ61OSowr1zlL0z6kmrpMW0H1b960IG YWrkT4iFvwX7aixKhgYLj8tO3e+bOlF1mFkp9NLdkkb/S74TvNRca17yG/6rwnyl1e4z QpSqeOEpu6JN/OT+NvM8+x68EXUXfBb7D13lJ1/kIVV9S4rU7Fj2h0rM2dk/r9EjQ0TY B+hS8QbzbjsFpfmOrM8k+hDcrGYCFgSvBTllLiZacBusigD372gc1kYh1fRu87GOFM+W bC6aHW6NR710XP4dnBcGoM30oxxd2Nd3mQy/FuQ4vz5xgIP3Ljz+cNQYhHmhNmeIGxVX dznQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cSpHKt6j; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3-v6si3090272pld.116.2018.06.13.08.59.55; Wed, 13 Jun 2018 09:00:10 -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=@gmail.com header.s=20161025 header.b=cSpHKt6j; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935889AbeFMP7X (ORCPT + 99 others); Wed, 13 Jun 2018 11:59:23 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34380 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935741AbeFMP7V (ORCPT ); Wed, 13 Jun 2018 11:59:21 -0400 Received: by mail-pf0-f195.google.com with SMTP id a63-v6so1656684pfl.1; Wed, 13 Jun 2018 08:59:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jPp9Z8+iUyS5bfJ0COwbnw1YUIb9H+yP5Lw/ODDV3u8=; b=cSpHKt6jmclSUxfnZzM/LlNAHX/1sr5GV8L/UaqMKECJM/fWwr2Y9LRfKUtf+m/EeG bYEeseRB1EMqMlj0UbKW74GBvwdbUWAizuutOH/G93muATCeBUsM+dKQBwJd4Ad42oSr LKDLPK+fKnIL42dAlCLlMOvCM6SBR+W6HFe8yhodmUMbZOJbZEpfoQcYH521OxtfpnZ7 Ei1lYjdUhSa+T7pGipjgGYjWaFAPdFZ8VH6S41JJ8yWSohA1Phj1mYvsB2wpoi1iqEqm dyxAaiXPn1rrPTsEyUWvLjcWIaeKtcHleLSPcXgQjAjwkW++s/TCj2kEh6ZjLancjSbq Hf/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=jPp9Z8+iUyS5bfJ0COwbnw1YUIb9H+yP5Lw/ODDV3u8=; b=ohVtK86lKS98RDpPQijEYIDahvuurwQcxFd+gg66KMn2ukObIYBrMTGyMAYHlELLrU YrAacax93pIudcJsfG5Dho2Dm6fUn1KlYCgKhQEz2pVTF9VMpt5xuDctPNy2alka5v8b bT8MMjayH1LAcIFJJ8uahW8uD9XT9yS+aFFHJhBcwRYbjnCbHIAVzToRSifGOxyMje/U p1xMNVQB0qEUaEsTSmgCCv7ntFpR0/FBiJ0jqp5g/5mcVMwoUiMYvNuwuPr48SngkHF3 AlC2qb29ux6sSuaNacCNQaIwb7lwuoI5A/lOEqf/onbCa4tEU7EWUXD/kReuGh9TxmaE RwDg== X-Gm-Message-State: APt69E1Klqy2vo54xx5saJfEh2oKoG8GCoy7XTXagdmO5gxQ1T3b/w47 kSIIO4RxYYiDGP1xk7QEWQ== X-Received: by 2002:a65:4841:: with SMTP id i1-v6mr4499291pgs.75.1528905560326; Wed, 13 Jun 2018 08:59:20 -0700 (PDT) Received: from arch (host81-131-105-100.range81-131.btcentralplus.com. [81.131.105.100]) by smtp.gmail.com with ESMTPSA id j15-v6sm6742914pfk.40.2018.06.13.08.59.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Jun 2018 08:59:19 -0700 (PDT) Date: Wed, 13 Jun 2018 16:58:53 +0100 From: Craig Tatlor To: Randy Dunlap Cc: linux-arm-msm@vger.kernel.org, Sebastian Reichel , Rob Herring , Mark Rutland , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Andrew Morton , Linus Walleij , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 2/4] power: supply: Add support for the Qualcomm Battery Monitoring System Message-ID: <20180613155819.GA10090@arch> References: <20180407135934.26122-1-ctatlor97@gmail.com> <20180607181306.9766-1-ctatlor97@gmail.com> <20180607181306.9766-2-ctatlor97@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 07, 2018 at 12:08:20PM -0700, Randy Dunlap wrote: > On 06/07/2018 11:12 AM, Craig Tatlor wrote: > > This patch adds a driver for the BMS (Battery Monitoring System) > > block of the PM8941 PMIC, it uses a lookup table defined in the > > device tree to generate a capacity from the BMS supplied OCV, it > > then ammends the coulomb counter to that to increase the accuracy > > amends > > > of the estimated capacity. > > > > Signed-off-by: Craig Tatlor > > --- > > > diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig > > index 428b426842f4..6c354c37bc55 100644 > > --- a/drivers/power/supply/Kconfig > > +++ b/drivers/power/supply/Kconfig > > @@ -82,6 +82,15 @@ config BATTERY_ACT8945A > > Say Y here to enable support for power supply provided by > > Active-semi ActivePath ACT8945A charger. > > > > +config BATTERY_BMS > > + tristate "Qualcomm Battery Monitoring System driver" > > + depends on MFD_SPMI_PMIC || COMPILE_TEST > > + depends on OF > > + depends on REGMAP_SPMI > > select REGMAP_SPMI > > I'm not a fan of "select", but it does not have a prompt string so it isn't > user settable (not directly; it can be set indirectly). > And all other uses of it in Kconfig files use "select". > > > + help > > + Say Y to include support for the Battery Monitoring hardware > > + found in some Qualcomm PM series PMICs. > > + > > config BATTERY_CPCAP > > tristate "Motorola CPCAP PMIC battery driver" > > depends on MFD_CPCAP && IIO > Thanks for the review. > > -- > ~Randy