]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: asus-wmi: do not enforce a battery charge threshold
authorDenis Benato <denis.benato@linux.dev>
Wed, 4 Mar 2026 13:26:08 +0000 (14:26 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 24 Mar 2026 13:26:10 +0000 (15:26 +0200)
commit186bf9031666602d61b40832181b6b6fdc3ba4dc
treee35a09277deed53c0f698161f23a3c6461681e79
parentdc1ec4fa86b2b8bba2b6122f2b4420217b5bae9e
platform/x86: asus-wmi: do not enforce a battery charge threshold

Users are complaining for the battery limit being reset at 100% during
the boot process while the general consensus appears to not apply
unsolicited hardware changes, therefore stop resetting the battery
charge limit at boot and return -ENODATA on charge_end_threshold to
signal for an unknown limit.

Suggested-by: Antheas Kapenekakis <lkml@antheas.dev>
Suggested-by: Derek J. Clark <derekjohn.clark@gmail.com>
Signed-off-by: Denis Benato <denis.benato@linux.dev>
Reviewed-by: Derek J. Clark <derekjohn.clark@gmail.com>
Tested-by: Antheas Kapenekakis <lkml@antheas.dev>
Link: https://patch.msgid.link/20260304132608.33815-1-denis.benato@linux.dev
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/asus-wmi.c