Skip to content

Fix AVS RDO bugs - #123

Merged
RobertZ2011 merged 2 commits into
OpenDevicePartnership:mainfrom
RobertZ2011:fix-epr-avs-pdo
Oct 27, 2026
Merged

RobertZ2011 merged 2 commits into
OpenDevicePartnership:mainfrom
RobertZ2011:fix-epr-avs-pdo

Conversation

@RobertZ2011

@RobertZ2011 RobertZ2011 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #84
Closes #85

@RobertZ2011 RobertZ2011 self-assigned this Oct 27, 2026
@RobertZ2011 RobertZ2011 added the bug Something isn't working label Oct 27, 2026
@RobertZ2011 RobertZ2011 added this to EC Oct 27, 2026
@RobertZ2011 RobertZ2011 changed the title Fix epr avs pdo Fix AVS RDO bugs Oct 27, 2026
@RobertZ2011
RobertZ2011 requested a balanced review from Copilot October 27, 2026 17:36
@RobertZ2011 RobertZ2011 moved this to In Progress in EC Oct 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

AVS encoding still permits nonzero mandatory-zero voltage bits, and both AVS fixtures preserve that invalid encoding.

1 open issue
What changed in this PR

This PR corrects AVS request handling in the USB Power Delivery code, addressing the voltage scaling and EPR dispatch bugs described in #84 and #85.

Changes:

  • Route EPR AVS PDOs through the AVS decoder instead of PPS.
  • Use 25 mV units for AVS voltage encoding and decoding.
  • Rename SPR round-trip tests and add an EPR AVS round-trip test.
File Description
src/​pdo/​rdo.rs Correct AVS dispatch and voltage scaling, and update round-trip tests.

Review effort: Balanced

Comment thread src/pdo/rdo.rs
@RobertZ2011
RobertZ2011 marked this pull request as ready for review October 27, 2026 18:00
@RobertZ2011
RobertZ2011 requested a review from a team as a code owner October 27, 2026 18:00
@RobertZ2011
RobertZ2011 enabled auto-merge (squash) October 27, 2026 18:00
@RobertZ2011
RobertZ2011 merged commit f64183b into OpenDevicePartnership:main Oct 27, 2026
10 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in EC Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

USB PD: EPR AVS PDOs are answered with a PPS RDO USB PD: AVS RDO decoded with 20mV PPS scaling instead of 25mV

4 participants