Re: [PATCH] platform/x86: huawei-wmi: Set battery charge thresholds through \SBCM

From: Eren Özen

Date: Wed Nov 18 2026 - 16:58:41 EST


Hi Hans, Ilpo,

Gentle ping on this patch. It still applies cleanly on the current
for-next (9c82959c37bf); huawei-wmi.c hasn't changed since I sent it.

It fixes the charge limit on the MateBook 16 (CREM-WXX9): once GNOME's
"Preserve Battery Health" has been turned off, turning it back on
leaves the EC in its smart-charge mode, and the battery charges past
the end threshold.

Fuwei Xie's RFC v2 [1] also touches huawei_wmi_battery_get(), so the
two patches conflict in three lines there. The fix is to keep my
charge-mode check and Fuwei's huawei_wmi_cmd_min(..., 3) call; with
that, the combined driver builds cleanly with W=1. I'm happy to rebase
on top of whichever goes in first, or to send a v2 if anything else
needs changing.

[1] https://lore.kernel.org/all/69C3BBDEF214121E+20261118161311.17252-1-12313607@xxxxxxxxxxxxxxxxxxx/

Thanks,
Eren