mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/1]  acpi: battery: Read Battery charge time for Steamdeck devices
@ 2026-11-16 10:27 Umang Jain
  2026-11-16 10:27 ` [PATCH v4 1/1] acpi: battery: Read Battery charge time("_BCT") " Umang Jain
  0 siblings, 1 reply; 2+ messages in thread
From: Umang Jain @ 2026-11-16 10:27 UTC (permalink / raw)
  To: Rafael J . Wysocki, Len Brown
  Cc: linux-acpi, linux-kernel, kernel-dev, Umang Jain

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-16 10:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-16 10:27 [PATCH v4 0/1] acpi: battery: Read Battery charge time for Steamdeck devices Umang Jain
2026-11-16 10:27 ` [PATCH v4 1/1] acpi: battery: Read Battery charge time("_BCT") " Umang Jain

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®