Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5906632ybi; Wed, 31 Jul 2019 05:15:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyWevIcHAdlB0VIaKjLjdd9Bwn9qAGR4LaDEUIsFstGkhMFUjjy19IW8YvFvMutRSwG00c X-Received: by 2002:a17:902:23:: with SMTP id 32mr33458113pla.34.1564575335224; Wed, 31 Jul 2019 05:15:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564575335; cv=none; d=google.com; s=arc-20160816; b=sNUAboesrk9jYc/FBdTCSeWrOxfgkx0FceIA4x1BRy13x8s+hSd2Kdstbjx+MkWfoB 1hfAtwL9CvdNT33kZI9sB2GQF76rCXqtXUHzFPETKTqDZNcLi/nMiFhbFFGiIFCLZuWP eQW/7TQUe3dI955U7SKIcUMGbB/eSIdjrb1oM1DSG/9vJn1m1slJnsoyT94bamNInr9Y 3/YBwUOgtLeJ85NyAEMsRjiYmWA1cdmRddCpllXqF4AUb76rb5N5P0lYIsncUj+UdxT+ DMYZooYcKKjg4Yzx7I0X86iyIUTe4DNLbbcBNzS0+tLZJL3Bf5KcEtEhzYrgYwDWn05a AitQ== 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=sZYIhcGXuRLJnQWkp3mlrbiUXMGW7kkGssQeR33K1q2NnaO9u5F5vw0uR7p4Ds3WRu qZmqrZ427qYiLJ8zw1PeswWmr8XfrPHTrUYyZZKy4nrGNO4lUFG31xUcidkLVraVml8W eyz51vrAabCClHgrfzk3hqkvh2JHTO7PKE/5SYkMD2/f1XK4LvKqb8KL+neWEggX74jX C9AWZKzka4pObo/bPn5R8/p5d1uiLZ0n/uOnQR3ekbE2Ms8TtRJRKBVI3v1+OZN2kOAY 6OT9FrktmrjVtPoqgufyP6PMdWJk0ZaruxJMmoWw1p2TFy25Q17gkCZWcmd2tJUV5uyx Phuw== 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-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 c23si31102040pfr.8.2019.07.31.05.15.20; Wed, 31 Jul 2019 05:15:35 -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=VVgGkcZX; 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 S2387622AbfGaKAv (ORCPT + 99 others); Wed, 31 Jul 2019 06:00:51 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:43716 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387598AbfGaKAv (ORCPT ); Wed, 31 Jul 2019 06:00:51 -0400 Received: by mail-pf1-f193.google.com with SMTP id i189so31588775pfg.10 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=pdaUXXrIkAfnmjyfOMeL6aLD74wuJcHwu6Hth0oFQHdQYHNhb8kWYUBQL5v4Prxpt4 aMKkflAtBaprRlpyi7zwkTdsD61J64VhASQ1pMu4xYXRWmYyApULqhFKTkoA1ZojPHdp erfejiQ8J5TiX++MlLsRwHUVGWIn1Uci4b/FPSO1YJJDLaFnlWFKBr12UB3bjoviSw+v ySpvNqbUpcxbggqtV5Yx7QNsHQzmnQv28zvaZBNZ/pvu3pGhiTAcZNb8uPIO19TOvTCs WDOFEJdjj2PV9LS33AWyCPOHSEkVq2xrOC8IHvRr8bGjc+iNKs+bb+JkcGa1hyPejC5u wOtA== X-Gm-Message-State: APjAAAUYKlOweedH75obX6izO8btkJwmahAvW7PHOMpSsU/u3ekLFgOS ql07y2J/SpzqiW69C9LFrPyX7Q== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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