Skip to content

Add additional USB control methods to DpConfig and TbtConfig#86

Merged
gjpmsft merged 3 commits intoOpenDevicePartnership:mainfrom
asasine:usb-control-config
Feb 24, 2026
Merged

Add additional USB control methods to DpConfig and TbtConfig#86
gjpmsft merged 3 commits intoOpenDevicePartnership:mainfrom
asasine:usb-control-config

Conversation

@asasine
Copy link
Contributor

@asasine asasine commented Feb 24, 2026

This pull request adds support for USB data path configuration to both DpConfig and TbtConfig in device.yaml, and introduces a new asynchronous method for modifying TBT configuration settings in the internal module. These changes enhance configurability and flexibility for USB and Thunderbolt features.

Enhancements to configuration support:

  • Added UsbDataPath field to DpConfig in device.yaml, enabling USB data path support with conversion values for requirement status.
  • Added UsbDataPath field to TbtConfig in device.yaml, also with conversion values for requirement status.

API improvements:

  • Introduced the modify_tbt_config asynchronous method to the Tps6699x implementation in src/asynchronous/internal/mod.rs, allowing flexible modification of TBT configuration settings.

Copilot AI review requested due to automatic review settings February 24, 2026 21:01
@asasine asasine requested a review from a team as a code owner February 24, 2026 21:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds USB data-path support controls to the generated DP and TBT configuration register field-sets, and exposes an async helper to modify TBT config in-place (mirroring existing DP config support).

Changes:

  • Add UsbDataPath bitfield + conversion enums to DpConfig and TbtConfig in device.yaml.
  • Add modify_tbt_config() async helper to Tps6699x internal async API (parallels modify_dp_config).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/asynchronous/internal/mod.rs Adds modify_tbt_config() for async read-modify-write of the TbtConfig register.
device.yaml Extends DpConfig and TbtConfig register definitions with UsbDataPath fields and value conversions for codegen.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@asasine
Copy link
Contributor Author

asasine commented Feb 24, 2026

@OpenDevicePartnership/crate-auditors the cargo deny is failing on an unrelated change. Please advise on how this should be handled.

@RobertZ2011
Copy link
Contributor

@gjpmsft gjpmsft merged commit 7f9f55f into OpenDevicePartnership:main Feb 24, 2026
15 of 16 checks passed
@asasine asasine deleted the usb-control-config branch February 24, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants