HomeFreeBSD

hid: Add HQ_NO_READAHEAD quirk and implement it in usbhid(4)

Description

hid: Add HQ_NO_READAHEAD quirk and implement it in usbhid(4)

It disables interrupt emulation on poll-driven buses like USB and
forces aquiring of only one USB frame per read(2) operation.
This avoids an FIDO/U2F issue where IN endpoint data received from
the device right before the file handle is closed, gets lost.

PR: 263995
Reviewed by: aokblast
Differential revision: https://reviews.freebsd.org/D51605

Details

Provenance
wulfAuthored on Aug 17 2025, 9:00 PM
Reviewer
aokblast
Differential Revision
D51605: hid: Add HQ_NO_READAHEAD quirk and implement it in usbhid(4)
Parents
rG6582915c59e8: tcopy: Fix braino.
Branches
Unknown
Tags
Unknown