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/6c8caabeb379
branches: trunk
changeset: 375238:6c8caabeb379
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 b0d120a7c2b1 -r 6c8caabeb379 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