platform/x86: hp-wmi: Add OmniBook 7 14-fr0xxx to charge_behaviour quirks
PATCH 1/1 platform/x86: hp-wmi: Add OmniBook 7 14-fr0xxx to charge_behaviour quirks
Extend the hp-wmi charge_behaviour quirk table with the HP OmniBook 7 14-fr0xxx (board 8E3B). The machine exposes battery charge mode control through the same GBCO/SBCO WMI command 0x2b path as the Spectre 8C15/8C17
boards: inhibit-charge stops charging on AC, force-discharge discharges on AC, and auto restores charging. As on other HP designs, the firmware retains the mode across reboot, which the existing setup seed already handles.
The extension is only registered after a successful GBCO read at probe, so boards without the interface are unaffected by the new quirk.
Tested on HP OmniBook 7 14-fr0xxx (BIOS 94.19, board 8E3B):
inhibit-charge stops charging on AC and auto restores charging, and a userspace 80 % hysteresis policy on top of charge_behaviour holds the battery between 75 % and 80 % while plugged in.
---
Based on git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git for-next
drivers/platform/x86/hp/hp-wmi.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/platform/x86/hp/hp-wmi.c +7 -0
@@ -634,6 +634,13 @@ static const struct dmi_system_id hp_wmi_charge_control_quirks[] __initconst = { DMI_MATCH(DMI_BOARD_NAME, "8C15"), }, }, + { +/* HP OmniBook 7 14-fr0xxx */ + .matches = { +DMI_MATCH (DMI_BOARD_VENDOR ,"HP" ), + DMI_MATCH(DMI_BOARD_NAME, "8E3B"), + }, + }, {} };#endif
Signature · 1 line
2.56.0
Ilpo Järvinen
maintainerQuoted 9 lines · Sergei Volkov
Extend the hp-wmi
charge_behaviourquirk table with the HP OmniBook 7 14-fr0xxx (board 8E3B). The machine exposes battery charge mode control through the same GBCO/SBCO WMI command0x2bpath as the Spectre 8C15/8C17
boards: inhibit-charge stops charging on AC, force-discharge discharges on AC, and auto restores charging. As on other HP designs, the firmware retains the mode across reboot, which the existing setup seed already handles.[...]
Thank you for your contribution, it has been applied to my local review-ilpo-next branch. Note it will show up in the public platform-drivers-x86/review-ilpo-next branch only once I've pushed my local branch there, which might take a while.
FYI [if applicable to your patch], as per Linus' policy change, also fixes are mostly routed through for-next unless the fix is for a commit introduced in the most recent cycle or is clearly a regression fix.
The list of commits applied:
[1/1] platform/x86: hp-wmi: Add OmniBook 7 14-fr0xxx to charge_behaviour quirks
commit: c05ab7245825603c04cacb47f0e2536abb6e3991
--
i.