HomeFreeBSD

ukbd(4): Push LED events in ioctl handler rather than in xfer callback

Description

ukbd(4): Push LED events in ioctl handler rather than in xfer callback

If LED state is set through evdev interface, than asynchronous nature
of USB transfer callback can lead to change of order of events echoed
back to userland as it causes LED events to be echoed with some lag.

Fix that with echoing of LED events synchronously in ioctl handler.

Reviewed by: hselasky
Obtained from: sysutils/iichid
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D27750

(cherry picked from commit 30f34a519372ebce29c4439d0e6a7bc8c2df0566)

Details

Provenance
wulfAuthored on Dec 24 2020, 7:08 PM
Reviewer
hselasky
Differential Revision
D27750: ukbd(4): Push LED events in ioctl handler rather than in xfer callback
Parents
rG4932ef733d23: ukbd(4): Do not serialize evdev key events
Branches
Unknown
Tags
Unknown