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 Pass the ic lock to urtwn_delay. This avo...



details:   https://anonhg.NetBSD.org/src-all/rev/4d5204697c5b
branches:  trunk
changeset: 370579:4d5204697c5b
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Fri Apr 08 23:34:46 2022 +1000

description:
Pass the ic lock to urtwn_delay.  This avoids lockups loading the firmware.

diffstat:

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

diffs (13 lines):

diff -r 91defe7ff721 -r 4d5204697c5b sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Fri Apr 08 14:24:35 2022 +1000
+++ b/sys/dev/usb/if_urtwn.c    Fri Apr 08 23:34:46 2022 +1000
@@ -4739,7 +4739,8 @@
            !ISSET(sc->sc_uw.uw_flags, URTWN_FLAG_FWREADY))
                DELAY(ms * 1000);
        else
-               usbd_delay_ms(sc->sc_uw.uw_udev, ms);
+               usbd_delay_ms_locked(sc->sc_uw.uw_udev, ms,
+                   usbwifi_mutex_ic(&sc->sc_uw));
 }
 
 MODULE(MODULE_CLASS_DRIVER, if_urtwn, NULL);



Home | Main Index | Thread Index | Old Index