From patchwork Wed Jul 31 10:00:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 170129 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp3802527ile; Wed, 31 Jul 2019 03:00:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqzd8L5ImzvucmL0vh0BxUu+8onJmEtPHHnY0dEM5ZH/SI2XR4EVN+hUlKZY5gZVAkOP8e X-Received: by 2002:a17:90a:d814:: with SMTP id a20mr2112655pjv.48.1564567252189; Wed, 31 Jul 2019 03:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564567252; cv=none; d=google.com; s=arc-20160816; b=MsFHv5suFtGN7/g/I07ZcoROQErWAxCJA7UG57ganXxoxAacyUtVc0FvsgfP5ycoJr 625kx9N6W1ZKRw46zgV10U1G/LfmV3jaitV0SO39O8PpbtaNf95vILm/FuwsnJYXZDbH zwcuLFYsnzDSvs4nkuWPPNeMGt1AS4jPUV7s2hoO1TDa9Kr4CUhYtKGf0eizXuHxAHNC +8C0xWzf4oS3ZMHH2ZWf4RpiYa/TACmgkwVyJQAS64MFn3JzG0BkMlnBaZhmm5iJyAwS IXC9ZnJvcqZunkNGbtxge55pgsQNw7PNad/Z73a8vYRBGRk81koYZCQ37kQtEm5swHMc alrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=zdY0mkeKz6wFUj2+Iv8tunD7YaIRXeWWDHoAU4rKgeM=; b=VmUiu1mxZy5ctDUmh0wnLwSnUBKsASMGvuz3SyfRX12sI3Ljw+54k89la3+rLuNfhQ nWT7k5RaHNvJSe/iBqWuyJnqb3m9OYaDfIuljGhXsju4T9ZourV+zYoBgYVtvD6gLsx4 EUl7rg27Xal2Vrqhb3dSoEbFljX3PtD6TEkcgBZ7z4WbYOrEl2Z/ie4ea8KDmzK4+jLU PE86hC5P7dWgB/QMSMI437dL2SdZcaJSiTRUo+P3kTbNQ7Mxn5WY+rRFD8OyT9hg07I0 SwG/sQotBirzGHshMTDoWqm1vNduVKWTVF8UZOZBjToUIfFpEkf2xS5w2dOgpyMX/lVk hWsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VVgGkcZX; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 n18si30465654plp.215.2019.07.31.03.00.51; Wed, 31 Jul 2019 03:00:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=VVgGkcZX; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S2387613AbfGaKAv (ORCPT + 11 others); Wed, 31 Jul 2019 06:00:51 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:46308 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387538AbfGaKAv (ORCPT ); Wed, 31 Jul 2019 06:00:51 -0400 Received: by mail-pf1-f196.google.com with SMTP id c3so8444010pfa.13 for ; Wed, 31 Jul 2019 03:00:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=zdY0mkeKz6wFUj2+Iv8tunD7YaIRXeWWDHoAU4rKgeM=; b=VVgGkcZXih1qP647R+vl7D9o6i6k9DG70z7bLhVqwiDo1I2LqOLWTfCxu1ekWU8Oya MwEwA/ZuDdiIjsYgsaiTci2krnAu1CwkbmYxrPbBvNPFQ9JFVDziVMAcSqPWRHs4lq04 eI8Qlsc4M0rhnDkmVf3nL9eFWhg8iOfazXarSVuZhau84pupSABqznhLh2lILMK91nnT YGCyj4xbFKyuUDmEbJF1jY6Fm2EpIINazzDGWHkrMQoNsb0g439ecgk+ose0bATGLK5g hiheflMKKhsVqN9mrAHTwXt8/17bJZUvTS9PYUwqXvnXAZaFfSmuyVzGOpAmJBQqVv9m a4hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zdY0mkeKz6wFUj2+Iv8tunD7YaIRXeWWDHoAU4rKgeM=; b=mcLvhVCal+wJgd5Lnrw0t7JZKLQ3wJfhlrE1kiUSb88P0I0m0KxJF4uUusPEne5kQh TC6lgrkxr7HpgvADoXELHpuCtBEoW/mbsqBZnozKwaduBSDgwGL/qJ0ECmq/4fjCtyEV fAaM6tRYLdOa+GEKr2FeisSNXI5/Phbjaa5yeIb9R0YGgv5MRm1WWEFA606XkT/+XIh3 CqMQcl2HfVvO2ldqvkEFnGhNfDRwN9EY9keFbbHt8zreq2hPnahZYq0mhjFP/jLCeW6R bh7J6gFXttpptJ1fb6AruR8OiHIDIEV8c9Hh6T1+LvfKVS3Kew2TjGBjBXpid/mK4sDF vIRQ== X-Gm-Message-State: APjAAAXJsAoWFG3E/CF3nUlhqmlm0VTDX3k2l9nc3zsKhuGBHepDLjzk VRHTUVMsJjMFefNPIYS4waSa44h+9zM1uw== X-Received: by 2002:a65:57ca:: with SMTP id q10mr116459163pgr.52.1564567250359; Wed, 31 Jul 2019 03:00:50 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id m6sm68611352pfb.151.2019.07.31.03.00.47 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Jul 2019 03:00:49 -0700 (PDT) From: Baolin Wang To: sre@kernel.org Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, yuanjiang.yu@unisoc.com, baolin.wang@linaro.org, vincent.guittot@linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] Optimize the Spreadtrum SC27xx fuel gauge Date: Wed, 31 Jul 2019 18:00:22 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi, This patch set adds new attributes for userspace, and fixes the the accuracy issue of coulomb counter calculation, as well as optimizing the battery capacity calibration in some abnormal scenarios. Any comments are welcome. Thanks. Yuanjiang Yu (6): power: supply: sc27xx: Add POWER_SUPPLY_PROP_ENERGY_FULL_DESIGN attribute power: supply: sc27xx: Fix conditon to enable the FGU interrupt power: supply: sc27xx: Fix the the accuracy issue of coulomb calculation power: supply: sc27xx: Optimize the battery capacity calibration power: supply: sc27xx: Make sure the alarm capacity is larger than 0 power: supply: sc27xx: Add POWER_SUPPLY_PROP_CALIBRATE attribute drivers/power/supply/sc27xx_fuel_gauge.c | 175 +++++++++++++++++++++--------- 1 file changed, 124 insertions(+), 51 deletions(-) -- 1.7.9.5