From: Umang Jain <uajain@igalia.com>
To: "Rafael J . Wysocki" <rafael@kernel.org>, Len Brown <lenb@kernel.org>
Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel-dev@igalia.com, Umang Jain <uajain@igalia.com>
Subject: [PATCH v4 0/1] acpi: battery: Read Battery charge time for Steamdeck devices
Date: Mon, 16 Nov 2026 15:57:51 +0530 [thread overview]
Message-ID: <20261116102752.520062-1-uajain@igalia.com> (raw)
Patch to query Battery charge time ("_BCT") from ACPI tables
for steamdeck devices to determine when low power PSU is connected,
which is discharging the device.
changes in v4:
- Merge both 1/2 and 2/2 into single patch
- Set quirk and _BCT reading at same place
- Edit comments for the same.
- Log failed message as acpi_handle_debug()
- Split case when _BCT value > ACPI_UINT32_MAX
Changes in v3:
- Only query BCT method for the steamdeck quirk
- Drop charge_time member from battery object
- check for returned value from acpi_evaluate_integer for max
ACPI_UINT32_MAX bounds as per the spec
Link: https://lore.kernel.org/all/20261014204558.466130-1-uajain@igalia.com/
Changes in v2:
- comment improvements
- split off BCT method handling into separate patch
- https://lore.kernel.org/all/20260923082932.1049270-1-uajain@igalia.com/
v1:
https://lore.kernel.org/all/20260918135628.2322188-1-uajain@igalia.com/
Umang Jain (1):
acpi: battery: Read Battery charge time("_BCT") for Steamdeck devices
drivers/acpi/battery.c | 49 +++++++++++++++++++++++++++++++++++++++++-
1 file changed, 48 insertions(+), 1 deletion(-)
--
2.55.0
next reply other threads:[~2026-11-16 10:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 10:27 Umang Jain [this message]
2026-11-16 10:27 ` [PATCH v4 1/1] acpi: battery: Read Battery charge time("_BCT") " Umang Jain
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=20261116102752.520062-1-uajain@igalia.com \
--to=uajain@igalia.com \
--cc=kernel-dev@igalia.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
/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
all inboxes | Powered by JetHome®