Skip to content

Add command for raw I2C passthrough without register - #389

Merged
JohnAZoidberg merged 2 commits into
mainfrom
i2c-transfer
Nov 12, 2026
Merged

JohnAZoidberg merged 2 commits into
mainfrom
i2c-transfer

Conversation

@JohnAZoidberg

Copy link
Copy Markdown
Member

For Laptop 12 2nd gen input deck.

@JohnAZoidberg
JohnAZoidberg requested review from TapFW and a balanced review from Copilot November 12, 2026 02:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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_transfer for 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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the raw I2C passthrough change.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@JohnAZoidberg
JohnAZoidberg enabled auto-merge (rebase) November 12, 2026 17:09
@JohnAZoidberg
JohnAZoidberg merged commit 6eafaf2 into main Nov 12, 2026
11 of 12 checks passed
@JohnAZoidberg
JohnAZoidberg deleted the i2c-transfer branch November 12, 2026 17:09
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