Skip to content

fix(usb): notify HID handler on bus reset - #6974

Open
srpatcha wants to merge 1 commit into
embassy-rs:mainfrom
srpatcha:fix/hid-reset-handler-6891
Open

fix(usb): notify HID handler on bus reset#6974
srpatcha wants to merge 1 commit into
embassy-rs:mainfrom
srpatcha:fix/hid-reset-handler-6891

Conversation

@srpatcha

@srpatcha srpatcha commented Sep 8, 2026

Copy link
Copy Markdown

Summary

  • add a backward-compatible HID request-handler reset callback
  • notify the handler after a USB bus reset while clearing partial report state
  • cover handler state restoration and the no-handler path with unit tests

Fixes #6891

Testing

  • Windows-equivalent repository formatting passed
  • git diff --check passed
  • Rust tests could not be run locally because no Rust toolchain is installed on the host

@leftger leftger added the e-usb label Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

embassy-usb HID: RequestHandler cannot restore Report protocol on USB bus reset

2 participants