Page MenuHomeFreeBSD

ums(4): Do not stop USB xfers on FIFO close when evdev is still active
ClosedPublic

Authored by wulf on May 18 2021, 10:57 PM.
Tags
None
Referenced Files
F114244625: D30342.id89457.diff
Wed, Apr 9, 6:04 PM
Unknown Object (File)
Wed, Apr 2, 10:19 AM
Unknown Object (File)
Feb 24 2025, 10:15 PM
Unknown Object (File)
Feb 15 2025, 8:47 AM
Unknown Object (File)
Jan 29 2025, 12:56 AM
Unknown Object (File)
Jan 27 2025, 1:21 PM
Unknown Object (File)
Jan 23 2025, 11:13 AM
Unknown Object (File)
Jan 13 2025, 7:19 AM

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39285
Build 36174: arc lint + arc unit

Event Timeline

wulf requested review of this revision.May 18 2021, 10:57 PM

While here use bitwise operations for UMS_EVDEV_OPENED flag.

wulf edited the test plan for this revision. (Show Details)
wulf added a reviewer: hselasky.
This revision is now accepted and ready to land.May 19 2021, 7:32 AM
sys/dev/usb/input/ums.c
951

This code must be under:

#ifdef XXX
968

This code must be under

#ifdef XXX
wulf marked 2 inline comments as done.May 19 2021, 7:47 AM
wulf added inline comments.
sys/dev/usb/input/ums.c
951

This code must be under:

#ifdef XXX

It already is. See line 943

This revision was automatically updated to reflect the committed changes.
wulf marked an inline comment as done.