Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/dev/usb Wait for device to sync after freeing xfers.



details:   https://anonhg.NetBSD.org/src-all/rev/3f69e69c5c8b
branches:  trunk
changeset: 990242:3f69e69c5c8b
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Sun Aug 16 10:07:55 2020 +1000

description:
Wait for device to sync after freeing xfers.

diffstat:

 sys/dev/usb/if_urtwn.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 30a7e7bf592c -r 3f69e69c5c8b sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Sun Aug 16 10:07:12 2020 +1000
+++ b/sys/dev/usb/if_urtwn.c    Sun Aug 16 10:07:55 2020 +1000
@@ -5832,6 +5832,7 @@
                        usbd_abort_pipe(sc->tx_pipe[i]);
        }
        mutex_exit(&sc->sc_tx_mtx);
+       urtwn_wait_async(sc);
 
        mutex_enter(&sc->sc_rx_mtx);
        /* Stop Rx pipe. */
@@ -5840,6 +5841,7 @@
                        usbd_abort_pipe(sc->rx_pipe[i]);
        }
        mutex_exit(&sc->sc_rx_mtx);
+       urtwn_wait_async(sc);
 
        sc->sc_running = false;
        if (disable)



Home | Main Index | Thread Index | Old Index