Skip to content

Type c service direct async calls#833

Draft
RobertZ2011 wants to merge 15 commits into
OpenDevicePartnership:v0.2.0from
RobertZ2011:type-c-service-direct-async-calls
Draft

Type c service direct async calls#833
RobertZ2011 wants to merge 15 commits into
OpenDevicePartnership:v0.2.0from
RobertZ2011:type-c-service-direct-async-calls

Conversation

@RobertZ2011
Copy link
Copy Markdown
Contributor

No description provided.

Move the `Controller` trait into its own module, and create a dedicated
module for types used as arguments/return values for various PD
functions.
The `Controller` trait is meant to abstract over PD controller hardware.
However, the current implementation exposes the underlying bus error
type. This isn't particulary useful, leaks implementation details, and
makes code more complicated when using enum dispatch. Remove it.
Implementators of this trait should log bus-specific error information
and return a `PdError`.
Break-up this trait to make everything more modular.
The LPM command contains the port number. Combine controller and port
ucsi traits.
This information is too hardware specific to expose it in a trait.
Transitioning away from the last bit of messaging code, no longer
needed.
@RobertZ2011 RobertZ2011 self-assigned this May 6, 2026
@RobertZ2011 RobertZ2011 force-pushed the type-c-service-direct-async-calls branch from 0e41390 to 39cc831 Compare May 7, 2026 18:10
Any device should have a human readable name.
Remove most uses of this type, limited it mostly to the UCSI code. Service
events now deal directly with referencs to port objects. Remove port
state stored in service implementation.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Cargo Vet Audit Passed

cargo vet has passed in this PR. No new unvetted dependencies were found.

@github-actions github-actions Bot added the cargo vet PRs pending auditor review label May 7, 2026
@RobertZ2011 RobertZ2011 force-pushed the type-c-service-direct-async-calls branch from 8ed3fc8 to de3f1b1 Compare May 7, 2026 21:54
@RobertZ2011 RobertZ2011 force-pushed the type-c-service-direct-async-calls branch from de3f1b1 to 352e330 Compare May 7, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cargo vet PRs pending auditor review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants