From: Sebastian Reichel <sebastian.reichel@collabora.com>
To: Vincent Cloutier <vincent.cloutier@icloud.com>
Cc: Hans de Goede <hansg@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>,
Purism Kernel Team <kernel@puri.sm>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
Vincent Cloutier <vincent@cloutier.co>
Subject: Re: [PATCH v1 0/9] power: supply: max17042_battery: improve MAX17055 support
Date: Thu, 4 Jun 2026 18:39:18 +0200 [thread overview]
Message-ID: <aiGp30oIyDo04qtq@venus> (raw)
In-Reply-To: <20260406205759.493288-1-vincent.cloutier@icloud.com>
[-- Attachment #1: Type: text/plain, Size: 2396 bytes --]
Hi,
On Mon, Apr 06, 2026 at 04:57:48PM -0400, Vincent Cloutier wrote:
> From: Vincent Cloutier <vincent@cloutier.co>
>
> This series refreshes the Librem 5 MAX17055 fuel-gauge work for upstream
> on top of current `mainline/master`.
>
> Original series:
> https://lore.kernel.org/lkml/20220318001048.20922-1-sebastian.krzyszkowiak@puri.sm/
>
> Compared to the earlier posted version, the main follow-up changes are:
>
> - keep the original arithmetic form of the fractional `MAX17042_*_LSB`
> expressions while still moving the unit conversions into shared defines
> - remove the unused board-file style platform-data wrapper from the driver
> - factor the `monitored-battery` parser behind a generic
> `devm_power_supply_get_battery_info()` helper so MAX17042 can read DT
> battery data before registration
> - keep `voltage-max-design-microvolt` as an explicit MAX17055
> `ModelCfg.VChg` setting so batteries at or below 4.25 V clear the
> default bit
>
> The attribution split is intentional:
>
> - patches 1, 2, and 7 preserve the original signed Purism downstream work
> from Sebastian Krzyszkowiak
> - the remaining patches are cleanups and follow-ups on top of current
> mainline code
>
> Tested on Librem 5.
>
> Sebastian Krzyszkowiak (3):
> power: supply: max17042_battery: Put LSB units into defines
> power: supply: max17042_battery: Use Current register in get_status
> power: supply: max17042_battery: use ModelCfg refresh on max17055
>
> Vincent Cloutier (6):
> power: supply: max17042_battery: Use dev_err_probe for power supply
> registration
> power: supply: max17042_battery: Route MAX17055 SOC alerts through
> dSOCi
> power: supply: max17042_battery: Keep only critical alerts during
> suspend
> power: supply: max17042_battery: Remove unused platform-data plumbing
> power: supply: Read MAX17042 battery info before registration
> power: supply: max17042_battery: Treat MAX17055 VChg as explicit DT
> setting
>
> drivers/power/supply/max17042_battery.c | 428 ++++++++++++++---------
> drivers/power/supply/power_supply_core.c | 188 ++++++----
> include/linux/power/max17042_battery.h | 33 +-
> include/linux/power_supply.h | 10 +
> 4 files changed, 393 insertions(+), 266 deletions(-)
I merged patches 1-7.
Greetings,
-- Sebastian
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2026-06-04 16:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-06 20:57 [PATCH v1 0/9] power: supply: max17042_battery: improve MAX17055 support Vincent Cloutier
2026-04-06 20:57 ` [PATCH v1 1/9] power: supply: max17042_battery: Put LSB units into defines Vincent Cloutier
2026-04-06 20:57 ` [PATCH v1 2/9] power: supply: max17042_battery: Use Current register in get_status Vincent Cloutier
2026-04-06 20:57 ` [PATCH v1 3/9] power: supply: max17042_battery: Use dev_err_probe for power supply registration Vincent Cloutier
2026-04-06 20:57 ` [PATCH v1 4/9] power: supply: max17042_battery: Route MAX17055 SOC alerts through dSOCi Vincent Cloutier
2026-04-06 20:57 ` [PATCH v1 5/9] power: supply: max17042_battery: Keep only critical alerts during suspend Vincent Cloutier
2026-04-06 20:57 ` [PATCH v1 6/9] power: supply: max17042_battery: Remove unused platform-data plumbing Vincent Cloutier
2026-04-06 20:57 ` [PATCH v1 7/9] power: supply: max17042_battery: use ModelCfg refresh on max17055 Vincent Cloutier
2026-04-06 20:57 ` [PATCH v1 8/9] power: supply: Read MAX17042 battery info before registration Vincent Cloutier
2026-06-04 16:37 ` Sebastian Reichel
2026-04-06 20:57 ` [PATCH v1 9/9] power: supply: max17042_battery: Treat MAX17055 VChg as explicit DT setting Vincent Cloutier
2026-06-04 16:39 ` Sebastian Reichel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aiGp30oIyDo04qtq@venus \
--to=sebastian.reichel@collabora.com \
--cc=hansg@kernel.org \
--cc=kernel@puri.sm \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=sebastian.krzyszkowiak@puri.sm \
--cc=vincent.cloutier@icloud.com \
--cc=vincent@cloutier.co \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox