mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
ACPI: battery: Adjust charging status validation check
Commitbb1256e0dd("ACPI: battery: fix incorrect charging status when current is zero") added a charge rate check to validate the "charging" status of the battery, but that check is reported to cause some systems to misbehave [1]. Namely, it causes the "not charging" status to be reported on them while the battery is in fact charging (and they were correctly reporting the "charging" status in that case previously). To address that, check if the battery is full in addition to checking the charge rate when the "charging" status is reported by the platform firmware and only change it to "not charging" if the battery is full and its charge rate is zero or it is unknown. Fixes:bb1256e0dd("ACPI: battery: fix incorrect charging status when current is zero") Reported-by: golne tree <lrepper@outlook.de> Tested-by: golne tree <lrepper@outlook.de> Closes: https://lore.kernel.org/linux-acpi/AM9P193MB158895CFE0DDFA62FCD1DA5ED0F22@AM9P193MB1588.EURP193.PROD.OUTLOOK.COM/ [1] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://patch.msgid.link/6286911.lOV4Wx5bFT@rafael.j.wysocki
This commit is contained in:
parent
57346c4d78
commit
77ce4be0d8
1 changed files with 19 additions and 17 deletions
Loading…
Add table
Add a link
Reference in a new issue