summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-07-21 15:16:31 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-07-21 23:08:58 +0200
commit77ce4be0d8d53c528d1663ab62a14d93d5853f11 (patch)
treebda30f7e6cfc8eb1f6e978d40c7481858fe09ab6 /drivers/platform
parent57346c4d78d38b357dbe9ef16d3f63bf4610c039 (diff)
downloadlinux-next-77ce4be0d8d53c528d1663ab62a14d93d5853f11.tar.gz
linux-next-77ce4be0d8d53c528d1663ab62a14d93d5853f11.zip
ACPI: battery: Adjust charging status validation check
Commit bb1256e0ddc7 ("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: bb1256e0ddc7 ("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
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions