Initialize device.regs according to HID descriptor
@razbhe10 is already working on this.
Since Jan 13, 2026.
Assessment
This issue has not been assessed yet.
Description
Currently, all handlers (input, command, report description) pull addresses directly from the HID descriptor. A better approach might be to initialize device.regs when reading the HID descriptor and then have the handlers use device.regs instead. The only catch is that we’d need to lock device.regs during this process. Right now, get_hid_descriptor takes care of the locking.
@jerrysxie Should we explore this option in a separate thread?
Originally posted by @razbhe10 in https://github.com/OpenDevicePartnership/embedded-services/pull/666#discussion_r2685293023
- Dominant language
- Rust
- Stars
- 25
- Forks
- 54
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 7
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenDevicePartnership/embedded-services
-
[mctp-rs] SmbusEspiMedium::serialize: bounds-check body_wire_len before truncating to byte_count: u8Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 3/5 Half a day Newbie friendliness 66/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
tcpm-service/ucsi: Implement `GET_ERROR_STATUS` UCSI PPM commandMay be free again @RobertZ2011 claimed this 35 days ago, and no pull request is open. Open
OpenDevicePartnership/embedded-services#977 · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
All issues in OpenDevicePartnership/embedded-services
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
foundry-rs/starknet-foundry#4733 ·
Maintainers usually reply within 4 days
-
autofix:working
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
libracoder/kiri#1138 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day