The branch main has been updated by wulf:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=47791339f0cfe3282a6f64b5607047f7bca968ad

commit 47791339f0cfe3282a6f64b5607047f7bca968ad
Author:     Vladimir Kondratyev <w...@freebsd.org>
AuthorDate: 2021-05-23 22:41:17 +0000
Commit:     Vladimir Kondratyev <w...@freebsd.org>
CommitDate: 2021-05-23 22:41:17 +0000

    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.
    
    MFC after:      2 weeks
    Differential revision:  https://reviews.freebsd.org/D30343
---
 sys/dev/usb/input/ums.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/usb/input/ums.c b/sys/dev/usb/input/ums.c
index b9533221ca8a..cce1831287e4 100644
--- a/sys/dev/usb/input/ums.c
+++ b/sys/dev/usb/input/ums.c
@@ -952,8 +952,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);
 }
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to