[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <175055372943.231368.2275498684959005372.b4-ty@collabora.com>
Date: Sun, 22 Jun 2025 02:55:29 +0200
From: Sebastian Reichel <sebastian.reichel@...labora.com>
To: Dmitry Baryshkov <dmitry.baryshkov@....qualcomm.com>,
Sebastian Reichel <sre@...nel.org>, Bjorn Andersson <andersson@...nel.org>,
Kornel Dulęba <korneld@...gle.com>
Cc: linux-arm-msm@...r.kernel.org, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] power: supply: qcom_battmgr: Report battery
capacity
On Wed, 28 May 2025 11:23:29 +0000, Kornel Dulęba wrote:
> Battery charge can be reported in several different ways. One of them is
> is charge percentage referred to as POWER_SUPPLY_PROP_CAPACITY in the
> power supply API. Currently the driver reports the capacity in this way
> on SM8350, but not on the newer variants referred to as SC8280XP in the
> driver. Although this is not a bug in itself, not reporting the
> percentage can confuse some userspace consumers.
> Mimic what is done in the ACPI driver (drivers/acpi/battery.c) and
> calculate the percentage capacity by dividing the current charge value
> by the full charge.
>
> [...]
Applied, thanks!
[1/1] power: supply: qcom_battmgr: Report battery capacity
commit: 3f87baacea4d185071655f9b0baf07abb6237fcd
Best regards,
--
Sebastian Reichel <sebastian.reichel@...labora.com>
Powered by blists - more mailing lists