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 usbtask to compelete when updatin...



details:   https://anonhg.NetBSD.org/src-all/rev/00eca3da92a5
branches:  trunk
changeset: 377101:00eca3da92a5
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Thu Jul 21 17:01:20 2022 +1000

description:
Wait for usbtask to compelete when updating wme or temp calib.

This greatly improves stability.

diffstat:

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

diffs (12 lines):

diff -r 92f48e2137f1 -r 00eca3da92a5 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Thu Jul 21 16:59:33 2022 +1000
+++ b/sys/dev/usb/if_urtwn.c    Thu Jul 21 17:01:20 2022 +1000
@@ -744,6 +744,8 @@ urtwn_do_async(struct urtwn_softc *sc,
        } else
                mutex_spin_exit(&sc->sc_task_mtx);
        splx(s);
+
+       urtwn_wait_async(sc);
 }
 
 static void



Home | Main Index | Thread Index | Old Index