usb: reduce HWW OUT polling interval to 1 ms
What changed, and why it matters
This commit simply makes the BitBox02 device respond more quickly to firmware upgrade data sent over USB by changing a timing value from 4 milliseconds to 1 millisecond. It is a performance improvement, not a security fix, and does not introduce any obvious security problem.
No security action required. Treat as a normal performance optimization.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch reduces the HWW (hardware wallet) OUT endpoint polling interval from 4 ms to 1 ms in both the firmware and bootloader USB HID descriptors. The IN endpoint remains at 4 ms. This increases the effective throughput for firmware upload in the bootloader stage1, speeding up upgrades. There is no change to endpoint permissions, packet size, protocol logic, or cryptographic handling.
Changed components
src/usb/class/usb_desc.hsrc/usb/class/usb_desc_common.hInspect captured patch +3 / −2
### CHANGELOG.md
@@ -231,6 +231,7 @@ recorded separately.
## Bootloader
### Unreleased
+- Speed up firmware upgrades over USB.
- Hold the screen reset pin low until bootloader is ready to initalize it.
### v1.2.2
### src/usb/class/usb_desc.h
@@ -99,7 +99,7 @@
USB_DESC_HWW_EP_OUT, /* ep_out.bEndpointAddress */ \
0x03, /* ep_out.bmAttributes */ \
USB_DESC_LE16(USB_DESC_HID_EP_SIZE), /* ep_out.wMaxPacketSize */ \
- 4 /* ep_out.bInterval */
+ 1 /* ep_out.bInterval */
#define USB_DESC_CONFIG \
USB_DESC_CONFIG_LEN, /* bLength */ \
### src/usb/class/usb_desc_common.h
@@ -96,7 +96,7 @@
USB_DESC_HWW_EP_OUT, /* ep_out.bEndpointAddress */ \
0x03, /* ep_out.bmAttributes */ \
USB_DESC_LE16(USB_DESC_HID_EP_SIZE), /* ep_out.wMaxPacketSize */ \
- 4 /* ep_out.bInterval */
+ 1 /* ep_out.bInterval */
#define USB_DESC_CONFIG \
USB_DESC_CONFIG_LEN, /* bLength */ \Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.