]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Revert "ACPI: battery: negate current when discharging"
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Jul 2025 10:54:55 +0000 (12:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:32:08 +0000 (18:32 +0200)
commit8842fa503c2288a6f644c837457798ec6905b5fc
tree55081417ba5cfa15caa2a4f30e3bf0d8e5458a76
parentee8d688e2ba558f3bb8ac225113740be5f335417
Revert "ACPI: battery: negate current when discharging"

commit de1675de39aa945bad5937d1fde4df3682670639 upstream.

Revert commit 234f71555019 ("ACPI: battery: negate current when
discharging") breaks not one but several userspace implementations
of battery monitoring: Steam and MangoHud. Perhaps it breaks more,
but those are the two that have been tested.

Reported-by: Matthew Schwartz <matthew.schwartz@linux.dev>
Closes: https://lore.kernel.org/linux-acpi/87C1B2AF-D430-4568-B620-14B941A8ABA4@linux.dev/
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/battery.c