Repository navigation
Add command for raw I2C passthrough without register - #389
Merged
Merged
Conversation
JohnAZoidberg
requested review from
TapFW
and
a balanced review from Copilot
November 12, 2026 02:19
There was a problem hiding this comment.
🟡 Changes recommended
Oversized I²C passthrough requests are not validated against transport capacity, causing backend panics or truncation with an incorrect declared length.
1 open issue
What changed in this PR
Adds raw I2C transfers without register addresses to support the Laptop 12 2nd-gen input deck.
Changes:
- Adds
i2c_transferfor optional writes and reads within one EC host command. - Returns I2C status for busy-device polling and validates successful response lengths and message counts.
| File | Description |
|---|---|
framework_lib/src/chromium_ec/i2c_passthrough.rs |
Implements raw I2C transfer requests and response validation. |
Review effort: Balanced
Signed-off-by: Daniel Schaefer <dhs@frame.work>
For Laptop 12 2nd gen input deck. optional write followed by an optional read in a single host command, without a register address and without the 128 byte retimer limit. Returns the I2C status instead of failing, so the caller can poll a device that NAKs while busy. Signed-off-by: Daniel Schaefer <dhs@frame.work>
JohnAZoidberg
force-pushed
the
i2c-transfer
branch
from
November 12, 2026 16:37
2e29caa to
83aeaec
Compare
JohnAZoidberg
enabled auto-merge (rebase)
November 12, 2026 17:09
JohnAZoidberg
disabled auto-merge
November 12, 2026 17:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

For Laptop 12 2nd gen input deck.