This fixes lose of evdev events after moused has been killed.
While here use bitwise operations for UMS_EVDEV_OPENED flag.
Differential D30342 Authored by wulf on May 18 2021, 10:57 PM.
Tags None Referenced Files
Subscribers
Details Summary This fixes lose of evdev events after moused has been killed. While here use bitwise operations for UMS_EVDEV_OPENED flag. Test Plan Kill moused attached to /dev/ums while a evdev consumer is attached to corresponding input/event device node. Than ensure that evdev events are still produced.
Diff Detail
Event TimelineHerald added subscribers: Contributor Reviews (src), imp. · View Herald TranscriptMay 18 2021, 10:57 PM2021-05-18 22:57:27 (UTC+0) Harbormaster completed remote builds in B39284: Diff 89456.May 18 2021, 10:57 PM2021-05-18 22:57:27 (UTC+0) Harbormaster completed remote builds in B39285: Diff 89457.May 18 2021, 11:19 PM2021-05-18 23:19:06 (UTC+0) wulf edited the summary of this revision. (Show Details)May 18 2021, 11:22 PM2021-05-18 23:22:56 (UTC+0) This revision is now accepted and ready to land.May 19 2021, 7:32 AM2021-05-19 07:32:49 (UTC+0) Closed by commit rG05ab03a31798: ums(4): Do not stop USB xfers on FIFO close when evdev is still active (authored by wulf). · Explain WhyMay 23 2021, 10:44 PM2021-05-23 22:44:24 (UTC+0) This revision was automatically updated to reflect the committed changes. wulf marked an inline comment as done.
Revision Contents
Diff 89457 sys/dev/usb/input/ums.c
|
Why is this needed?