From: borissh1983@gmail.com
To: Sebastian Reichel <sebastian.reichel@collabora.com>
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] power: supply: sbs-battery: Add PbAc, NiZn, RAM, and ZnAr support
Date: Wed, 24 Jun 2026 12:13:54 +0300 [thread overview]
Message-ID: <5349148.31r3eYUQgx@beast> (raw)
In-Reply-To: ajmc_naB7zYv0SPY@venus
Hi.
On Monday, 22 June 2026 23:39:26 Israel Daylight Time Sebastian Reichel wrote:
> Hi,
>
> On Sun, Jun 21, 2026 at 05:59:52PM +0300, Boris Shtrasman wrote:
> > Add support for PbAc, NiZn, RAM, and ZnAr chemistries as defined in the
> > Smart Battery Data Specification v1.1 (Section 5.1.30 DeviceChemistry).
> > 2 files changed, 12 insertions(+)
> >
> > diff --git a/drivers/power/supply/sbs-battery.c b/drivers/power/supply/sbs-battery.c
> > index 43c48196c167..42a941e99155 100644
> > --- a/drivers/power/supply/sbs-battery.c
> > +++ b/drivers/power/supply/sbs-battery.c
> > @@ -860,6 +860,14 @@ static int sbs_get_chemistry(struct sbs_info *chip,
> > chip->technology = POWER_SUPPLY_TECHNOLOGY_NiCd;
> > else if (!strncasecmp(chemistry, "NiMH", 4))
> > chip->technology = POWER_SUPPLY_TECHNOLOGY_NiMH;
> > + else if (!strncasecmp(chemistry, "PbAc", 4))
> > + chip->technology = POWER_SUPPLY_TECHNOLOGY_PbAc;
> > + else if (!strncasecmp(chemistry, "NiZn", 4))
> > + chip->technology = POWER_SUPPLY_TECHNOLOGY_NiZn;
> > + else if (!strncasecmp(chemistry, "RAM", 3))
> > + chip->technology = POWER_SUPPLY_TECHNOLOGY_RAM;
> > + else if (!strncasecmp(chemistry, "ZnAr", 4))
> > + chip->technology = POWER_SUPPLY_TECHNOLOGY_ZnAr;
> > else
> > chip->technology = POWER_SUPPLY_TECHNOLOGY_UNKNOWN;
> >
> > diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
> > index 7a5e4c3242a0..034800cd21da 100644
> > --- a/include/linux/power_supply.h
> > +++ b/include/linux/power_supply.h
> > @@ -83,6 +83,10 @@ enum {
> > POWER_SUPPLY_TECHNOLOGY_LiFe,
> > POWER_SUPPLY_TECHNOLOGY_NiCd,
> > POWER_SUPPLY_TECHNOLOGY_LiMn,
> > + POWER_SUPPLY_TECHNOLOGY_PbAc,
> > + POWER_SUPPLY_TECHNOLOGY_NiZn,
> > + POWER_SUPPLY_TECHNOLOGY_RAM,
> > + POWER_SUPPLY_TECHNOLOGY_ZnAr,
> > };
>
> You need to update the ABI Documentation and the sysfs code to
> handle the new properties.
>
I assume I should have two patches one that include ABI documentation,
sysfs , selftest and the power_supply.h while the other is only for
the sbs-battery.
Or should it be three patches ,power_supply ,h + sysfs , documentation
and self test, and sbs-battery ?
> Greetings,
>
> -- Sebastian
>
Thank you .
prev parent reply other threads:[~2026-06-24 9:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-21 14:59 [PATCH] power: supply: sbs-battery: Add PbAc, NiZn, RAM, and ZnAr support Boris Shtrasman
2026-06-22 20:39 ` Sebastian Reichel
2026-06-24 9:13 ` borissh1983 [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=5349148.31r3eYUQgx@beast \
--to=borissh1983@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=sebastian.reichel@collabora.com \
/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