]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: battery: Add the ThinkPad "Not Charging" quirk
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 22 Dec 2021 21:20:14 +0000 (22:20 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 30 Dec 2021 16:24:59 +0000 (17:24 +0100)
commit6fee9b1d7044018fd0917769ea006dfbeec8d220
tree5d57f2b00748ff8172e98d32951dd4a074cfe128
parent7cc6dd0af4253d69f4447d6560edd0e7748296d3
ACPI: battery: Add the ThinkPad "Not Charging" quirk

The EC/ACPI firmware on Lenovo ThinkPads used to report a status
of "Unknown" when the battery is between the charge start and
charge stop thresholds. On Windows, it reports "Not Charging"
so the quirk has been added to also report correctly.

Now the "status" attribute returns "Not Charging" when the
battery on ThinkPads is not physicaly charging.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/battery.c