Skip to content

Refactoring of USB API #5541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Refactoring of USB API #5541

wants to merge 1 commit into from

Conversation

cepetr
Copy link
Contributor

@cepetr cepetr commented Aug 13, 2025

This PR simplifies the USB stack API:

  • Significantly reduces the number of USB driver syscalls
  • Moves hardware-specific code to the kernel
  • Introduces new generic read/write syscalls
  • Consolidates USB initialization from multiple locations into a single place in the kernel
  • Allows partial reconfiguration (changing the serial number) of the USB stack on the fly

@cepetr cepetr self-assigned this Aug 13, 2025
@trezor-bot trezor-bot bot added this to Firmware Aug 13, 2025
@github-project-automation github-project-automation bot moved this to 🔎 Needs review in Firmware Aug 13, 2025
Copy link

github-actions bot commented Aug 13, 2025

en main(all)

model device_test click_test persistence_test
T2T1 test(all) main(all) test(all) main(all) test(all) main(all)
T3B1 test(all) main(all) test(all) main(all) test(all) main(all)
T3T1 test(all) main(all) test(all) main(all) test(all) main(all)
T3W1 test(all) main(all) test(all) main(all) test(all) main(all)

Latest CI run: 17154172869

@cepetr cepetr force-pushed the cepetr/usb-config branch 6 times, most recently from 168cf18 to f337c32 Compare August 15, 2025 13:21
@cepetr cepetr marked this pull request as ready for review August 18, 2025 12:55
@cepetr cepetr force-pushed the cepetr/usb-config branch from f337c32 to 281c4c5 Compare August 18, 2025 13:42
@cepetr cepetr mentioned this pull request Aug 19, 2025
@cepetr cepetr force-pushed the cepetr/usb-config branch from 281c4c5 to bcf0287 Compare August 22, 2025 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔎 Needs review
Development

Successfully merging this pull request may close these issues.

1 participant