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/ea4edfb48b95
branches:  trunk
changeset: 367669:ea4edfb48b95
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 d0959aa7c131 -r ea4edfb48b95 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
@@ -4738,7 +4738,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