]> git.ipfire.org Git - thirdparty/linux.git/commit
ACPI: battery: Add the ThinkPad "Not Charging" quirk
authorOgnjen Galic <smclt30p@gmail.com>
Wed, 7 Feb 2018 14:59:36 +0000 (15:59 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 21 Feb 2018 22:27:14 +0000 (23:27 +0100)
commit91eea70e5e5ce12eb1c7cd922e561fab43e201bd
treed88311e951a7614f03b162379e8fc18688674314
parent2801b9683f740012863f7f0b1f0bc770c417fe72
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.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Ognjen Galic <smclt30p@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/battery.c