[Mirror] Some kind of OS: git://git.9front.org/plan9front/plan9front
Find a file
cinap_lenrek 82da41a2eb nusbrc: use exponential backoff and timeout usb enumeration
nusbrc used to wait forever until initial device
enumeration was completed. the reason is mainly
so that usb stoage or ethernet devices can be
used as boot media.

but this can result in a system getting completely stuck
on boot if usb enumeration gets stuck. (this really
depends on the device driver if some timeouts
have been implemented during attach).

as a compromise, we will wait for usb enumeration
to complete using exponential back-off with a maximum
total wait time of ~10 seconds.

typical times for single device initial enumeration is
0.4 to 0.6 seconds.

largest case i measured with 20 random devices was
7 seconds.

so we will probably be safe with the 10 second timeout.
2023-09-27 19:19:09 +00:00
386 ape: sync flaot.h macros with u.h 2021-02-08 15:45:11 -08:00
68000
68020 ape: sync flaot.h macros with u.h 2021-02-08 15:45:11 -08:00
acme mkfiles: add 'mk test' support 2023-02-19 20:44:56 -05:00
adm/timezone timezones: change DST timezone string for South Australia 2019-11-20 11:49:16 +10:30
amd64 libc: change usize to 64-bit for amd64 and arm64, make memory(2) functions use usize 2021-07-25 15:54:22 +00:00
arm ape: sync flaot.h macros with u.h 2021-02-08 15:45:11 -08:00
arm64 libc: change usize to 64-bit for amd64 and arm64, make memory(2) functions use usize 2021-07-25 15:54:22 +00:00
lib /lib/keyboard: fix subscript small letter n. add super/sub small letter i 2023-09-13 19:05:18 +00:00
mips ape: sync flaot.h macros with u.h 2021-02-08 15:45:11 -08:00
power ape: sync flaot.h macros with u.h 2021-02-08 15:45:11 -08:00
power64
rc sysupdate: use the rc -b flag to keep sysupdate in memory 2023-09-17 00:36:51 +00:00
sparc ape: sync flaot.h macros with u.h 2021-02-08 15:45:11 -08:00
sparc64 ape: sync flaot.h macros with u.h 2021-02-08 15:45:11 -08:00
spim /spim/include/ape/ureg.h: fixed missing ifndef 2023-03-07 04:26:34 +00:00
sys nusbrc: use exponential backoff and timeout usb enumeration 2023-09-27 19:19:09 +00:00