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/671e9a60c141
branches:  trunk
changeset: 378000:671e9a60c141
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 4a60df55c023 -r 671e9a60c141 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 @@ urtwn_delay_ms(struct urtwn_softc *sc, i
            !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