Skip to content

acpi: battery: Read Battery charge time for Steamdeck devices

Umang Jain linux-acpi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest1 patch 2 repliesIn review

Changes in v4 from the cover letter

- 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

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1acpi: battery: Read Battery charge time("_BCT") for Steamdeck devicesdrivers/acpi/battery.c+48 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/1] acpi: battery: Read Battery charge time for Steamdeck devices

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

Changes in v2:
- comment improvements
- split off BCT method handling into separate patch
- https://lore.kernel.org/all/[email protected]/

v1:
https://lore.kernel.org/all/[email protected]/

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(-)
Signature · 1 line
2.55.0