CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2020/08/27 11:33:07
Modified files:
sys/dev/usb : uhidev.c
Log message:
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@