Skip to content

linux-omarchy-aarch64 (7.3.6-30): add the HP OmniBook 3 16-ct0 embedded controller driver - #4502

Open
vineethrp wants to merge 1 commit into
omacom:masterfrom
omarchy-sc:hp-omnibook-3-16-ct0-ec
Open

vineethrp wants to merge 1 commit into
omacom:masterfrom
omarchy-sc:hp-omnibook-3-16-ct0-ec

Conversation

@vineethrp

@vineethrp vineethrp commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

The HP OmniBook 3 16-ct0 (SC7280) has no pmic_glink battery, so Omarchy shows no battery and no AC adapter on it. HP's ACPI reads both from an embedded controller at I2C 0x76 on i2c10, with events on TLMM GPIO 18.

2915 (binding) and 2916 (driver) add hp-omnibook-3-ec. It reports the battery and the AC adapter through power_supply, using the same commands and layouts as HP's _BIX, _BST and _PSR. It refreshes on the EC's events and every 30 s, since the EC sends no event when the charge moves by itself, and it sends HP's modern standby notification on suspend and resume. Built as CONFIG_EC_HP_OMNIBOOK3=m; it binds only to hp,omnibook-3-16-ct0-ec.

The node is in #4503 (0105). Without it, the module never loads.

Since the first review, following Greptile:

  • A failed battery-info or cycle-count read leaves the info marked stale, so the next refresh retries it.
  • The 30 s poll notifies the AC adapter too when it finds the AC state changed.
  • The poll compares with the level and flags it last announced, not with the read cache, so sysfs reads (such as omarchy-battery-status every 5 s) can no longer swallow a level change.

Rebased onto 7.3.6-29 as 7.3.6-30: every patch applies with --fuzz=0 with the new config line, and the driver builds without warnings (W=1). Tested on a 16-ct0 (board 8FD0): the battery and the AC adapter follow the charger through suspend and resume, unplugging and replugging notifies both supplies, and with the capacity read every 2 s, a drop from 100 % to 94 % was still announced by the next poll (23 s later).

🤖 Generated with Claude Code

@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no actionable defects remain from this review.

Summary

Adds battery and AC support for the HP OmniBook 3 16-ct0 through its embedded controller.

  • The OmniBook 3 EC now reports battery and charger state.
  • The OmniBook 3 EC now receives standby signals around sleep.

No new actionable issues were found. The current code addresses all four earlier findings: failed detail reads remain eligible for retry, polling notifies AC listeners, property reads cannot overwrite the announced baseline, and IRQ or resume notifications force the next successful poll to announce both supplies.

The device-tree node remains intentionally separate in #4503. This review checked code paths and related consumers; it did not run a kernel build or hardware test.

Reviews (8) · Last reviewed commit: "linux-omarchy-aarch64 (7.3.6-30): add th..." · Reviewed by Greptile

@vineethrp
vineethrp force-pushed the hp-omnibook-3-16-ct0-ec branch from 134aa1f to fca7023 Compare December 2, 2026 21:23
@vineethrp vineethrp changed the title linux-omarchy-aarch64 (7.3.6-26): add the HP OmniBook 3 16-ct0 embedded controller driver linux-omarchy-aarch64 (7.3.6-27): add the HP OmniBook 3 16-ct0 embedded controller driver Dec 2, 2026
@vineethrp
vineethrp force-pushed the hp-omnibook-3-16-ct0-ec branch from fca7023 to 87ae0bf Compare December 2, 2026 22:32
@vineethrp
vineethrp force-pushed the hp-omnibook-3-16-ct0-ec branch from 87ae0bf to e27e4d3 Compare December 2, 2026 22:37
@vineethrp vineethrp changed the title linux-omarchy-aarch64 (7.3.6-27): add the HP OmniBook 3 16-ct0 embedded controller driver linux-omarchy-aarch64 (7.3.6-28): add the HP OmniBook 3 16-ct0 embedded controller driver Dec 2, 2026
@birkskyum

Copy link
Copy Markdown
Contributor

Thanks for the clean stack @vineethrp! We're building and landing #4501 at 7.3.6-28 first (along with #4483 and #4517).

Once #4501 merges, could you please address Greptile's P2 review comment on hpec_poll_work() (tracking last_announced_soc separately from ec->soc so sysfs reads from omarchy-battery-status don't mask battery-level change events) and rebase this onto 7.3.6-28 as 7.3.6-29? ("Allow edits by maintainers" is off on this PR, so we can't push the rebase directly.)

@vineethrp

Copy link
Copy Markdown
Contributor Author

Thanks @birkskyum! Will do: once #4501 lands I'll fix the hpec_poll_work() finding (tracking the last announced level and flags separately from the read cache), rebase onto 7.3.6-28 as 7.3.6-29 and push.

Sorry about the maintainer edits. I opened these PRs from an organization I created to keep this work separate, and GitHub doesn't offer "Allow edits by maintainers" for forks owned by an organization. I'll open future PRs from my personal fork so you can push to them directly.

@birkskyum

Copy link
Copy Markdown
Contributor

@vineethrp #4501 (linux-omarchy-aarch64 7.3.6-28) is merged now, along with #4483, #4517, and #4490 (linux-omarchy-dtbs 7.3-102), which are all published. Feel free to push the hpec_poll_work() fix and rebase onto 7.3.6-28 as 7.3.6-29 whenever you're ready!

@vineethrp
vineethrp force-pushed the hp-omnibook-3-16-ct0-ec branch from e27e4d3 to 0f749e0 Compare December 3, 2026 00:49
@vineethrp vineethrp changed the title linux-omarchy-aarch64 (7.3.6-28): add the HP OmniBook 3 16-ct0 embedded controller driver linux-omarchy-aarch64 (7.3.6-29): add the HP OmniBook 3 16-ct0 embedded controller driver Dec 3, 2026
@vineethrp

Copy link
Copy Markdown
Contributor Author

@birkskyum pushed: rebased onto 7.3.6-28 as 7.3.6-29, with the hpec_poll_work() fix (it now compares with the last announced level and flags). Tested on the 16-ct0: with the capacity read every 2 s, a drop from 100 % to 94 % was still announced by the next poll.

@vineethrp
vineethrp force-pushed the hp-omnibook-3-16-ct0-ec branch from 0f749e0 to 9d4bdbb Compare December 3, 2026 17:16
@vineethrp vineethrp changed the title linux-omarchy-aarch64 (7.3.6-29): add the HP OmniBook 3 16-ct0 embedded controller driver linux-omarchy-aarch64 (7.3.6-30): add the HP OmniBook 3 16-ct0 embedded controller driver Dec 3, 2026
…ed controller driver

The HP OmniBook 3 16-ct0 (SC7280) has no pmic_glink battery. HP's ACPI
reads the battery and the AC adapter from an embedded controller at 0x76
on i2c10. Add a driver for it (2915, 2916) that reports both through
power_supply, and build it as EC_HP_OMNIBOOK3=m.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vineethrp
vineethrp force-pushed the hp-omnibook-3-16-ct0-ec branch from 9d4bdbb to 117e6ee Compare December 3, 2026 17:56

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants