diff options
author | Vladimir Kondratyev <wulf@FreeBSD.org> | 2021-05-23 22:41:17 +0000 |
---|---|---|
committer | Vladimir Kondratyev <wulf@FreeBSD.org> | 2021-06-13 22:05:21 +0000 |
commit | 7c55c8c7ff7259bc40d2df7b07865bb800aba49f (patch) | |
tree | 2935e67ab65979a766bd8908f5cc93c99e7cde81 | |
parent | e1dfdff10967d294f8c9acb22812380901be3f80 (diff) | |
download | src-7c55c8c7ff7259bc40d2df7b07865bb800aba49f.tar.gz src-7c55c8c7ff7259bc40d2df7b07865bb800aba49f.zip |
ums(4): Start USB xfers on opening of evdev node unconditionally.
This fixes inability to start USB xfers in a case when FIFO has been
already open()-ed but no read() or poll() calls has been issued yet.
Differential revision: https://reviews.freebsd.org/D30343
(cherry picked from commit 47791339f0cfe3282a6f64b5607047f7bca968ad)
-rw-r--r-- | sys/dev/usb/input/ums.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/input/ums.c b/sys/dev/usb/input/ums.c index 40b7a8aed774..cd5cc905f1b5 100644 --- a/sys/dev/usb/input/ums.c +++ b/sys/dev/usb/input/ums.c @@ -959,8 +959,8 @@ ums_ev_open(struct evdev_dev *evdev) if (sc->sc_fflags == 0) { ums_reset(sc); - ums_start_rx(sc); } + ums_start_rx(sc); return (0); } |