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)
commite96c1197aca628f7d2480a1cc3214912b40b3414
tree5d57f2b00748ff8172e98d32951dd4a074cfe128
parentfc74e0a40e4f9fd0468e34045b0c45bba11dcbb2
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