Skip to content

fix: improve xHCI CAM transfer handling#77

Merged
ZR233 merged 7 commits into
mainfrom
fix/cam
May 8, 2026
Merged

fix: improve xHCI CAM transfer handling#77
ZR233 merged 7 commits into
mainfrom
fix/cam

Conversation

@ZR233
Copy link
Copy Markdown
Member

@ZR233 ZR233 commented May 8, 2026

Summary

  • improve xHCI transfer/event handling for CAM/UVC-style workloads
  • keep endpoint queues and interface endpoint state coherent across claims
  • tighten descriptor/control completion handling and reduce noisy logging
  • clean up uvc-frame-parser clippy warnings

Validation

  • cargo check
  • cargo clippy

Note: cargo clippy --workspace --all-targets is currently blocked by an external sparreal-kernel dependency compile error (ALLOCATOR not found), before reaching this workspace lint checks.

ZR233 added 7 commits May 8, 2026 10:59
- Introduced a new structure to manage endpoint interfaces within the Device struct.
- Enhanced endpoint setup logic to clear stale endpoints and manage interface-specific endpoints.
- Implemented a method to find endpoint descriptors across all alternate settings.
- Improved logging for transfer events, command completions, and port status changes with a budget mechanism to limit log output.
- Updated control transfer handling to track and log control transfer states more effectively.
- Modified the Device struct to maintain a map of claimed interfaces instead of a single current interface.
- Adjusted endpoint retrieval methods to support multiple interfaces and their respective endpoints.
- Enhanced error handling and logging for transfer events and reclaiming requests.
- Updated logging statements in device and endpoint management to use debug level instead of info for better performance and reduced log verbosity.
- Removed unused atomic log budget checks in host and transfer modules to streamline code.
@ZR233 ZR233 marked this pull request as ready for review May 8, 2026 07:20
@ZR233 ZR233 merged commit 54609db into main May 8, 2026
2 checks passed
@ZR233 ZR233 deleted the fix/cam branch May 8, 2026 07:20
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.

1 participant