diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-08-27 17:33:08 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-08-27 17:33:08 +0000 |
commit | 9d82481c587f3bec98fb94de0070e54a040a38d0 (patch) | |
tree | 590b05a72fe211a63f421d24be5d44703323c2ce /sys/dev/usb/usb_subr.c | |
parent | 40a5c1c6a6f2ef40a921bf261bb7318bfc7aa5d2 (diff) |
Clear endpoint stall on open(2) of /dev/uhidX to synchronize toggle bit
as needed on xhci(4) machines. On non-xhci(4) we save and restore the
toggle bit on close/open of a pipe. With xhci(4) this does not seem to
be possible, at least I haven't yet found it. This means that on those
machines with xhci(4), after a pipe close/open, the device will use the
previous state, while xhci(4)'s state is reset to default. By issuing
a clear endpoint stall we reset the device's toggle bit. Now every
time a /dev/uhid is (re-)opened the state should be synchronized.
Discussed with damien@, mpi@ and Pedro Marteletto
ok markus@
Diffstat (limited to 'sys/dev/usb/usb_subr.c')
0 files changed, 0 insertions, 0 deletions