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/13985ded166c
branches: trunk
changeset: 365125:13985ded166c
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 7e4f46f3bf40 -r 13985ded166c 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